public class RetryOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RetryOptions.Builder
A Builder for ChannelOptions objects.
|
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_BACKOFF_MULTIPLIER
Multiplier to apply to wait times after failed retries (default value: 2).
|
static int |
DEFAULT_INITIAL_BACKOFF_MILLIS
Initial amount of time to wait before retrying failed operations (default value: 5ms).
|
static int |
DEFAULT_MAX_ELAPSED_BACKOFF_MILLIS
Maximum amount of time to retry before failing the operation (default value: 60 seconds).
|
static int |
DEFAULT_READ_PARTIAL_ROW_TIMEOUT_MS
We can timeout when reading large cells with a low value here.
|
static int |
DEFAULT_STREAMING_BUFFER_SIZE |
static boolean |
ENABLE_GRPC_RETRIES_DEFAULT
Flag indicating whether or not grpc retries should be enabled.
|
static boolean |
ENABLE_GRPC_RETRY_DEADLINE_EXCEEDED_DEFAULT
Flag indicating whether or not to retry grpc call on deadline exceeded.
|
Modifier and Type | Method and Description |
---|---|
boolean |
enableRetries()
Enable or disable retries.
|
double |
getBackoffMultiplier()
Multiplier we will apply to backoff times between retries.
|
int |
getInitialBackoffMillis()
The amount of time in miliiseconds we will wait for our first error retry.
|
int |
getMaxElaspedBackoffMillis()
Maximum amount of time we will retry an operation that is failing.
|
int |
getReadPartialRowTimeoutMillis()
A timeout for reading individual ReadRowsResponse messages from a stream.
|
int |
getStreamingBufferSize()
The maximum number of messages to buffer when scanning.
|
boolean |
retryOnDeadlineExceeded()
Whether to retry on deadline exceeded.
|
public static int DEFAULT_STREAMING_BUFFER_SIZE
public static boolean ENABLE_GRPC_RETRIES_DEFAULT
public static boolean ENABLE_GRPC_RETRY_DEADLINE_EXCEEDED_DEFAULT
public static int DEFAULT_READ_PARTIAL_ROW_TIMEOUT_MS
public static final int DEFAULT_INITIAL_BACKOFF_MILLIS
public static final double DEFAULT_BACKOFF_MULTIPLIER
public static final int DEFAULT_MAX_ELAPSED_BACKOFF_MILLIS
public int getInitialBackoffMillis()
public int getMaxElaspedBackoffMillis()
public double getBackoffMultiplier()
public boolean enableRetries()
public boolean retryOnDeadlineExceeded()
public int getStreamingBufferSize()
public int getReadPartialRowTimeoutMillis()
Copyright © 2015. All rights reserved.