public class RetryingUnaryOperation<RequestT,ResponseT> extends AbstractRetryingOperation<RequestT,ResponseT,ResponseT>
AbstractRetryingOperation
for a unary operation.AbstractRetryingOperation.GrpcFuture<RespT>
call, callLock, completionFuture, currentBackoff, failedCount, LOG, operationSpan, operationTimerContext, retryExecutorService, retryOptions, rpc, rpcTimerContext, UNARY_DEADLINE_MINUTES
Constructor and Description |
---|
RetryingUnaryOperation(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 |
---|---|
protected io.grpc.CallOptions |
getCallOptions() |
void |
onMessage(ResponseT message) |
protected boolean |
onOK(io.grpc.Metadata trailers)
A subclass has the opportunity to perform the final operations it needs now that the RPC is
successfully complete.
|
cancel, cancel, finalizeStats, getAsyncResult, getBlockingResult, getExhaustedRetriesException, getNextBackoff, getOriginalRequest, getRetryRequest, getRunnable, isRequestRetryable, onClose, onError, performRetry, run, setException
public RetryingUnaryOperation(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 boolean onOK(io.grpc.Metadata trailers)
onOK
in class AbstractRetryingOperation<RequestT,ResponseT,ResponseT>
protected io.grpc.CallOptions getCallOptions()
getCallOptions
in class AbstractRetryingOperation<RequestT,ResponseT,ResponseT>