MetadataUpdater
is an abstraction of metadata updaters that are used by NetworkClient to handle completed metadata responses.
Method | Description |
---|---|
|
void close() Closes the metadata updater |
|
List<Node> fetchNodes() Used when:
|
|
void handleCompletedMetadataResponse(
RequestHeader requestHeader,
long now,
MetadataResponse metadataResponse) Handles a response to a metadata request Used when |
|
void handleDisconnection(
String destination) Used when |
|
void handleFatalException(
KafkaException fatalException) Used when |
|
boolean isUpdateDue(
long now) Used when |
|
long maybeUpdate(
long now) Starts a cluster metadata update if needed and possible. Used when |
|
void requestUpdate() Schedules an update of the current cluster metadata Used when |
MetadataUpdater | Description |
---|---|
AdminMetadataUpdater |
Used by AdminMetadataManager |
Default |
|
ManualMetadataUpdater |