Package | Description |
---|---|
com.datastax.oss.driver.api.core.retry |
Modifier and Type | Method and Description |
---|---|
RetryDecision |
RetryPolicy.onErrorResponse(Request request,
CoordinatorException error,
int retryCount)
Whether to retry when the server replied with a recoverable error (other than
READ_TIMEOUT , WRITE_TIMEOUT or UNAVAILABLE ). |
RetryDecision |
RetryPolicy.onReadTimeout(Request request,
ConsistencyLevel cl,
int blockFor,
int received,
boolean dataPresent,
int retryCount)
Whether to retry when the server replied with a
READ_TIMEOUT error; this indicates a
server-side timeout during a read query, i.e. |
RetryDecision |
RetryPolicy.onRequestAborted(Request request,
Throwable error,
int retryCount)
Whether to retry when a request was aborted before we could get a response from the server.
|
RetryDecision |
RetryPolicy.onUnavailable(Request request,
ConsistencyLevel cl,
int required,
int alive,
int retryCount)
Whether to retry when the server replied with an
UNAVAILABLE error; this indicates that
the coordinator determined that there were not enough replicas alive to perform a query with
the requested consistency level. |
RetryDecision |
RetryPolicy.onWriteTimeout(Request request,
ConsistencyLevel cl,
WriteType writeType,
int blockFor,
int received,
int retryCount)
Whether to retry when the server replied with a
WRITE_TIMEOUT error; this indicates a
server-side timeout during a write query, i.e. |
static RetryDecision |
RetryDecision.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetryDecision[] |
RetryDecision.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2017–2020. All rights reserved.