Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
com.datastax.driver.core.exceptions |
Exceptions thrown by the DataStax Java driver for Cassandra.
|
com.datastax.driver.core.policies |
Policies that allow to control some of the behavior of the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
static WriteType |
WriteType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteType[] |
WriteType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
WriteType |
WriteFailureException.getWriteType()
The type of the write for which a timeout was raised.
|
WriteType |
WriteTimeoutException.getWriteType()
The type of the write for which a timeout was raised.
|
Constructor and Description |
---|
WriteFailureException(ConsistencyLevel consistency,
WriteType writeType,
int received,
int required,
int failed)
Deprecated.
Legacy constructor for backward compatibility.
|
WriteFailureException(ConsistencyLevel consistency,
WriteType writeType,
int received,
int required,
int failed,
Map<InetAddress,Integer> failuresMap)
This constructor should only be used internally by the driver when decoding error responses.
|
WriteFailureException(InetSocketAddress address,
ConsistencyLevel consistency,
WriteType writeType,
int received,
int required,
int failed)
Deprecated.
Legacy constructor for backward compatibility.
|
WriteFailureException(InetSocketAddress address,
ConsistencyLevel consistency,
WriteType writeType,
int received,
int required,
int failed,
Map<InetAddress,Integer> failuresMap) |
WriteTimeoutException(ConsistencyLevel consistency,
WriteType writeType,
int received,
int required)
This constructor should only be used internally by the driver when decoding error responses.
|
WriteTimeoutException(InetSocketAddress address,
ConsistencyLevel consistency,
WriteType writeType,
int received,
int required) |
Modifier and Type | Method and Description |
---|---|
RetryPolicy.RetryDecision |
LoggingRetryPolicy.onWriteTimeout(Statement statement,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry) |
RetryPolicy.RetryDecision |
FallthroughRetryPolicy.onWriteTimeout(Statement statement,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry)
Defines whether to retry and at which consistency level on a write timeout.
|
RetryPolicy.RetryDecision |
IdempotenceAwareRetryPolicy.onWriteTimeout(Statement statement,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry)
Deprecated.
|
RetryPolicy.RetryDecision |
DowngradingConsistencyRetryPolicy.onWriteTimeout(Statement statement,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry)
Deprecated.
Defines whether to retry and at which consistency level on a write timeout.
|
RetryPolicy.RetryDecision |
RetryPolicy.onWriteTimeout(Statement statement,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry)
Defines whether to retry and at which consistency level on a write timeout.
|
RetryPolicy.RetryDecision |
DefaultRetryPolicy.onWriteTimeout(Statement statement,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry)
Defines whether to retry and at which consistency level on a write timeout.
|
Copyright © 2012–2025. All rights reserved.