CoordinatorResponseHandler Contract

CoordinatorResponseHandler is the extension of the RequestFutureAdapter contract for type converters that handle ClientResponses.

Table 1. CoordinatorResponseHandler Contract
Method Description

handle

void handle(
  R response,
  RequestFuture<T> future)

Handles a successful response from a group coordinator

Used exclusively when CoordinatorResponseHandler is requested to onSuccess

Table 2. CoordinatorResponseHandlers
CoordinatorResponseHandler Description

HeartbeatResponseHandler

JoinGroupResponseHandler

Handles JoinGroupResponses

LeaveGroupResponseHandler

OffsetCommitResponseHandler

OffsetFetchResponseHandler

SyncGroupResponseHandler

onFailure Method

void onFailure(RuntimeException e, RequestFuture<T> future)
Note
onFailure is part of the RequestFutureAdapter Contract to perform a type conversion when a RequestFuture completes with a failure.

onFailure…​FIXME

onSuccess Method

void onSuccess(ClientResponse clientResponse, RequestFuture<T> future)
Note
onSuccess is part of the RequestFutureAdapter Contract to perform a type conversion when a RequestFuture completes with a success.

onSuccess…​FIXME

results matching ""

    No results matching ""