com.google.cloud.bigtable.config
Class RetryOptions.Builder
- java.lang.Object
-
- com.google.cloud.bigtable.config.RetryOptions.Builder
-
- Enclosing class:
- RetryOptions
public static class RetryOptions.Builder extends Object
A Builder for ChannelOptions objects.
-
-
Constructor Summary
Constructors Constructor and Description Builder()
Deprecated.Builder(RetryOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 maxElapsedBackoffMillis)
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.
-
-
-
Constructor Detail
-
Builder
@Deprecated public Builder()
Deprecated.
-
Builder
public Builder(RetryOptions options)
-
-
Method Detail
-
setEnableRetries
public RetryOptions.Builder setEnableRetries(boolean enabled)
Enable or disable retries.
-
setRetryOnDeadlineExceeded
public RetryOptions.Builder setRetryOnDeadlineExceeded(boolean enabled)
Enable or disable retry on deadline exceeded.
-
setInitialBackoffMillis
public RetryOptions.Builder setInitialBackoffMillis(int initialBackoffMillis)
The amount of time in milliseconds we will wait for our first error retry.
-
setBackoffMultiplier
public RetryOptions.Builder setBackoffMultiplier(double multiplier)
Multiplier we will apply to backoff times between retries.
-
setMaxElapsedBackoffMillis
public RetryOptions.Builder setMaxElapsedBackoffMillis(int maxElapsedBackoffMillis)
Maximum amount of time we will retry an operation that is failing.
-
setStreamingBufferSize
public RetryOptions.Builder setStreamingBufferSize(int streamingBufferSize)
Set the maximum number of messages to buffer when scanning.
-
setReadPartialRowTimeoutMillis
public RetryOptions.Builder setReadPartialRowTimeoutMillis(int timeout)
Set the timeout in milliseconds for reading individual ReadRowsResponse messages from a stream.
-
setMaxScanTimeoutRetries
public RetryOptions.Builder setMaxScanTimeoutRetries(int maxScanTimeoutRetries)
Set the maximum number of times to retry after a scan timeout.
-
addStatusToRetryOn
public RetryOptions.Builder addStatusToRetryOn(io.grpc.Status.Code code)
-
setAllowRetriesWithoutTimestamp
public 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.
-
build
public RetryOptions build()
Construct a new RetryOptions object.
-
-