MetadataUpdater Contract

MetadataUpdater is the abstraction of FIXME that FIXME.

Table 1. MetadataUpdater Contract
Method Description

close

void close()

Used when…​FIXME

fetchNodes

List<Node> fetchNodes()

Used when…​FIXME

handleAuthenticationFailure

void handleAuthenticationFailure(AuthenticationException exception)

Used when…​FIXME

handleCompletedMetadataResponse

void handleCompletedMetadataResponse(
  RequestHeader requestHeader,
  long now,
  MetadataResponse metadataResponse)

Used when…​FIXME

handleDisconnection

void handleDisconnection(String destination)

Used when…​FIXME

isUpdateDue

boolean isUpdateDue(long now)

Used when…​FIXME

maybeUpdate

long maybeUpdate(long now)

Starts a cluster metadata update if needed and possible.

Used exclusively when NetworkClient is requested to read and write to sockets.

requestUpdate

void requestUpdate()

Schedules an update of the current cluster metadata

results matching ""

    No results matching ""