Package | Description |
---|---|
com.datastax.oss.driver.api.core.retry | |
com.datastax.oss.driver.api.core.servererrors |
Modifier and Type | Method and Description |
---|---|
RetryDecision |
RetryPolicy.onWriteTimeout(Request request,
ConsistencyLevel cl,
WriteType writeType,
int blockFor,
int received,
int retryCount)
Deprecated.
As of version 4.10, use
RetryPolicy.onWriteTimeoutVerdict(Request, ConsistencyLevel,
WriteType, int, int, int) instead. |
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. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultWriteType
A default write type supported by the driver out of the box.
|
Modifier and Type | Field and Description |
---|---|
static WriteType |
WriteType.BATCH |
static WriteType |
WriteType.BATCH_LOG |
static WriteType |
WriteType.CAS |
static WriteType |
WriteType.CDC |
static WriteType |
WriteType.COUNTER |
static WriteType |
WriteType.SIMPLE |
static WriteType |
WriteType.UNLOGGED_BATCH |
static WriteType |
WriteType.VIEW |
Modifier and Type | Method and Description |
---|---|
WriteType |
WriteFailureException.getWriteType()
The type of the write for which this failure was raised.
|
WriteType |
WriteTimeoutException.getWriteType()
The type of the write for which a timeout was raised.
|
Constructor and Description |
---|
WriteFailureException(Node coordinator,
ConsistencyLevel consistencyLevel,
int received,
int blockFor,
WriteType writeType,
int numFailures,
Map<InetAddress,Integer> reasonMap) |
WriteTimeoutException(Node coordinator,
ConsistencyLevel consistencyLevel,
int received,
int blockFor,
WriteType writeType) |
Copyright © 2017–2024. All rights reserved.