@InternalApi(value="For internal usage only") public class RetryingUnaryOperation<RequestT,ResponseT> extends AbstractRetryingOperation<RequestT,ResponseT,ResponseT>
AbstractRetryingOperation
for a unary operation.
For internal use only - public for technical reasons.
AbstractRetryingOperation.GrpcFuture<RespT>
callWrapper, completionFuture, 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,
com.google.api.core.ApiClock clock)
Constructor for RetryingUnaryRpcListener.
|
Modifier and Type | Method and Description |
---|---|
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, createCallController, finalizeStats, getAsyncResult, getBlockingResult, getExhaustedRetriesException, getNextBackoff, getOperationCallOptions, getRetryRequest, getRpcCallOptions, getRunnable, inRetryMode, isRequestRetryable, isStreamingRead, onClose, onError, performRetry, resetStatusBasedBackoff, run, setException
public RetryingUnaryOperation(RetryOptions retryOptions, RequestT request, BigtableAsyncRpc<RequestT,ResponseT> retryableRpc, io.grpc.CallOptions callOptions, ScheduledExecutorService executorService, io.grpc.Metadata metadata, com.google.api.core.ApiClock clock)
retryOptions
- a RetryOptions
object.request
- a RequestT object.retryableRpc
- a BigtableAsyncRpc
object.callOptions
- a CallOptions
object.executorService
- a ScheduledExecutorService
object.metadata
- a Metadata
object.clock
- a ApiClock
objectpublic 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>