public class RetryingCollectingClientCallListener<RequestT,ResponseT> extends AbstractRetryingRpcListener<RequestT,ResponseT,List<ResponseT>>
RetryingCollectingClientCallListener class.
AbstractRetryingRpcListener.GrpcFuture<RespT>
call, callLock, completionFuture, currentBackoff, failedCount, LOG, retryExecutorService, retryOptions, rpc, rpcTimerContext
Constructor and Description |
---|
RetryingCollectingClientCallListener(RetryOptions retryOptions,
RequestT request,
BigtableAsyncRpc<RequestT,ResponseT> retryableRpc,
io.grpc.CallOptions callOptions,
ScheduledExecutorService executorService,
io.grpc.Metadata metadata)
Constructor for RetryingCollectingClientCallListener.
|
Modifier and Type | Method and Description |
---|---|
void |
onMessage(ResponseT message) |
protected void |
onOK()
A subclass has the opportunity to perform the final operations it needs now that the RPC is
successfully complete.
|
void |
run()
Calls
BigtableAsyncRpc.newCall(CallOptions) and BigtableAsyncRpc.start(ClientCall, Object, io.grpc.ClientCall.Listener, Metadata) with this as
the listener so that retries happen correctly. |
cancel, cancel, createCompletionFuture, getCompletionFuture, getRetryRequest, isRequestRetryable, onClose, setException, start
public RetryingCollectingClientCallListener(RetryOptions retryOptions, RequestT request, BigtableAsyncRpc<RequestT,ResponseT> retryableRpc, io.grpc.CallOptions callOptions, ScheduledExecutorService executorService, io.grpc.Metadata metadata)
Constructor for RetryingCollectingClientCallListener.
retryOptions
- a RetryOptions
object.request
- a RequestT object.retryableRpc
- a BigtableAsyncRpc
object.callOptions
- a CallOptions
object.executorService
- a ScheduledExecutorService
object.metadata
- a Metadata
object.public void run()
Calls BigtableAsyncRpc.newCall(CallOptions)
and BigtableAsyncRpc.start(ClientCall, Object, io.grpc.ClientCall.Listener, Metadata)
with this as
the listener so that retries happen correctly.
public void onMessage(ResponseT message)
onMessage
in class io.grpc.ClientCall.Listener<ResponseT>