public class RetryingUnaryRpcCallListener<RequestT,ResponseT> extends AbstractRetryingRpcListener<RequestT,ResponseT,ResponseT>
AsyncFunction
that retries a BigtableAsyncRpc
request.AbstractRetryingRpcListener.GrpcFuture<RespT>
call, callLock, completionFuture, currentBackoff, failedCount, LOG, retryExecutorService, retryOptions, rpc, rpcTimerContext
Constructor and Description |
---|
RetryingUnaryRpcCallListener(RetryOptions retryOptions,
RequestT request,
BigtableAsyncRpc<RequestT,ResponseT> retryableRpc,
io.grpc.CallOptions callOptions,
ScheduledExecutorService executorService,
io.grpc.Metadata metadata)
Constructor for RetryingUnaryRpcListener.
|
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.
|
cancel, cancel, createCompletionFuture, getCompletionFuture, getRetryRequest, isRequestRetryable, onClose, run, setException, start
public RetryingUnaryRpcCallListener(RetryOptions retryOptions, RequestT request, BigtableAsyncRpc<RequestT,ResponseT> retryableRpc, io.grpc.CallOptions callOptions, ScheduledExecutorService executorService, io.grpc.Metadata metadata)
Constructor for RetryingUnaryRpcListener.
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 onMessage(ResponseT message)
onMessage
in class io.grpc.ClientCall.Listener<ResponseT>
protected void onOK()
onOK
in class AbstractRetryingRpcListener<RequestT,ResponseT,ResponseT>