RequestFutureAdapter Contract

RequestFutureAdapter is the base of RequestFuture type converters that can do type conversion when a RequestFuture completes with a success or a failure.

Table 1. RequestFutureAdapter Contract
Method Description

onFailure

void onFailure(
  RuntimeException e,
  RequestFuture<T> future)

Performs a type conversion when a RequestFuture completes with a failure

Used when:

  • FindCoordinatorResponseHandler is requested to onFailure

  • RequestFuture is requested to compose

onSuccess

void onSuccess(
  F value,
  RequestFuture<T> future)

Performs type conversion when a RequestFuture completes with a success

Used exclusively when RequestFuture is requested to compose

Table 2. RequestFutureAdapters (Direct Implementations)
RequestFutureAdapter Description

CoordinatorResponseHandler

FindCoordinatorResponseHandler

results matching ""

    No results matching ""