public static class RetryOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Builder(RetryOptions options) |
Modifier and Type | Method and Description |
---|---|
RetryOptions.Builder |
addStatusToRetryOn(io.grpc.Status.Code code) |
RetryOptions |
build()
Construct a new RetryOptions object.
|
RetryOptions.Builder |
setAllowRetriesWithoutTimestamp(boolean allowRetriesWithoutTimestamp)
Perform retries even if a Put (or other Mutations) don't have a time stamp set and set the
timestamp to the server time.
|
RetryOptions.Builder |
setBackoffMultiplier(double multiplier)
Multiplier we will apply to backoff times between retries.
|
RetryOptions.Builder |
setEnableRetries(boolean enabled)
Enable or disable retries.
|
RetryOptions.Builder |
setInitialBackoffMillis(int initialBackoffMillis)
The amount of time in milliseconds we will wait for our first error retry.
|
RetryOptions.Builder |
setMaxElapsedBackoffMillis(int maxElaspedBackoffMillis)
Maximum amount of time we will retry an operation that is failing.
|
RetryOptions.Builder |
setMaxScanTimeoutRetries(int maxScanTimeoutRetries)
Set the maximum number of times to retry after a scan timeout.
|
RetryOptions.Builder |
setReadPartialRowTimeoutMillis(int timeout)
Set the timeout in milliseconds for reading individual
ReadRowsResponse messages from a stream.
|
RetryOptions.Builder |
setRetryOnDeadlineExceeded(boolean enabled)
Enable or disable retry on deadline exceeded.
|
RetryOptions.Builder |
setStreamingBufferSize(int streamingBufferSize)
Set the maximum number of messages to buffer when scanning.
|
public Builder()
public Builder(RetryOptions options)
public RetryOptions.Builder setEnableRetries(boolean enabled)
public RetryOptions.Builder setRetryOnDeadlineExceeded(boolean enabled)
public RetryOptions.Builder setInitialBackoffMillis(int initialBackoffMillis)
public RetryOptions.Builder setBackoffMultiplier(double multiplier)
public RetryOptions.Builder setMaxElapsedBackoffMillis(int maxElaspedBackoffMillis)
public RetryOptions.Builder setStreamingBufferSize(int streamingBufferSize)
public RetryOptions.Builder setReadPartialRowTimeoutMillis(int timeout)
public RetryOptions.Builder setMaxScanTimeoutRetries(int maxScanTimeoutRetries)
public RetryOptions.Builder addStatusToRetryOn(io.grpc.Status.Code code)
public RetryOptions.Builder setAllowRetriesWithoutTimestamp(boolean allowRetriesWithoutTimestamp)
public RetryOptions build()