Package | Description |
---|---|
com.datastax.oss.driver.api.core.retry |
Modifier and Type | Field and Description |
---|---|
static RetryVerdict |
RetryVerdict.IGNORE
A retry verdict that ignores the error, returning and empty result set to the caller.
|
static RetryVerdict |
RetryVerdict.RETHROW
A retry verdict that rethrows the execution error to the calling code.
|
static RetryVerdict |
RetryVerdict.RETRY_NEXT
A retry verdict that retries the same request on the next node in the query plan.
|
static RetryVerdict |
RetryVerdict.RETRY_SAME
A retry verdict that retries the same request on the same node.
|
Modifier and Type | Method and Description |
---|---|
default RetryVerdict |
RetryPolicy.onErrorResponseVerdict(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 ). |
default RetryVerdict |
RetryPolicy.onReadTimeoutVerdict(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. |
default RetryVerdict |
RetryPolicy.onRequestAbortedVerdict(Request request,
Throwable error,
int retryCount)
Whether to retry when a request was aborted before we could get a response from the server.
|
default RetryVerdict |
RetryPolicy.onUnavailableVerdict(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. |
default RetryVerdict |
RetryPolicy.onWriteTimeoutVerdict(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. |
Copyright © 2017–2024. All rights reserved.