com.google.cloud.bigtable.grpc.async
Class RetryingMutateRowsOperation
- java.lang.Object
-
- io.grpc.ClientCall.Listener<ResponseT>
-
- com.google.cloud.bigtable.grpc.async.AbstractRetryingOperation<com.google.bigtable.v2.MutateRowsRequest,com.google.bigtable.v2.MutateRowsResponse,List<com.google.bigtable.v2.MutateRowsResponse>>
-
- com.google.cloud.bigtable.grpc.async.RetryingMutateRowsOperation
-
public class RetryingMutateRowsOperation extends AbstractRetryingOperation<com.google.bigtable.v2.MutateRowsRequest,com.google.bigtable.v2.MutateRowsResponse,List<com.google.bigtable.v2.MutateRowsResponse>>
Performs retries forBigtableDataClient.mutateRows(MutateRowsRequest)
operations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.cloud.bigtable.grpc.async.AbstractRetryingOperation
AbstractRetryingOperation.GrpcFuture<RespT>
-
-
Field Summary
-
Fields inherited from class com.google.cloud.bigtable.grpc.async.AbstractRetryingOperation
callWrapper, completionFuture, failedCount, LOG, operationSpan, operationTimerContext, retryExecutorService, retryOptions, rpc, rpcTimerContext, UNARY_DEADLINE_MINUTES
-
-
Constructor Summary
Constructors Constructor and Description RetryingMutateRowsOperation(RetryOptions retryOptions, com.google.bigtable.v2.MutateRowsRequest originalRequest, BigtableAsyncRpc<com.google.bigtable.v2.MutateRowsRequest,com.google.bigtable.v2.MutateRowsResponse> retryableRpc, io.grpc.CallOptions callOptions, ScheduledExecutorService retryExecutorService, io.grpc.Metadata originalMetadata, com.google.api.core.ApiClock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected com.google.bigtable.v2.MutateRowsRequest
getRetryRequest()
void
onMessage(com.google.bigtable.v2.MutateRowsResponse 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.-
Methods inherited from class com.google.cloud.bigtable.grpc.async.AbstractRetryingOperation
cancel, cancel, createCallController, finalizeStats, getAsyncResult, getBlockingResult, getExhaustedRetriesException, getNextBackoff, getOperationCallOptions, getRpcCallOptions, getRunnable, inRetryMode, isRequestRetryable, isStreamingRead, onClose, onError, performRetry, resetStatusBasedBackoff, run, setException
-
-
-
-
Constructor Detail
-
RetryingMutateRowsOperation
public RetryingMutateRowsOperation(RetryOptions retryOptions, com.google.bigtable.v2.MutateRowsRequest originalRequest, BigtableAsyncRpc<com.google.bigtable.v2.MutateRowsRequest,com.google.bigtable.v2.MutateRowsResponse> retryableRpc, io.grpc.CallOptions callOptions, ScheduledExecutorService retryExecutorService, io.grpc.Metadata originalMetadata, com.google.api.core.ApiClock clock)
-
-
Method Detail
-
onMessage
public void onMessage(com.google.bigtable.v2.MutateRowsResponse message)
- Overrides:
onMessage
in classio.grpc.ClientCall.Listener<com.google.bigtable.v2.MutateRowsResponse>
-
getRetryRequest
protected com.google.bigtable.v2.MutateRowsRequest getRetryRequest()
- Overrides:
getRetryRequest
in classAbstractRetryingOperation<com.google.bigtable.v2.MutateRowsRequest,com.google.bigtable.v2.MutateRowsResponse,List<com.google.bigtable.v2.MutateRowsResponse>>
-
onOK
protected boolean onOK(io.grpc.Metadata trailers)
Description copied from class:AbstractRetryingOperation
A subclass has the opportunity to perform the final operations it needs now that the RPC is successfully complete. If a subclass has to retry, due to the message, this method will return false- Specified by:
onOK
in classAbstractRetryingOperation<com.google.bigtable.v2.MutateRowsRequest,com.google.bigtable.v2.MutateRowsResponse,List<com.google.bigtable.v2.MutateRowsResponse>>
- Returns:
- true if the operation was really completed.
-
-