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 |
---|---|
ConsistencyLevel |
ExecutionInfo.getAchievedConsistencyLevel()
If the query returned without achieving the requested consistency level
due to the
RetryPolicy , this
return the biggest consistency level that has been actually achieved by
the query. |
ConsistencyLevel |
Query.getConsistencyLevel()
Returns the consistency level.
|
ConsistencyLevel |
PreparedStatement.getConsistencyLevel()
Returns the default consistency level set through
PreparedStatement.setConsistencyLevel(com.datastax.driver.core.ConsistencyLevel) . |
static ConsistencyLevel |
ConsistencyLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsistencyLevel[] |
ConsistencyLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.setConsistencyLevel(ConsistencyLevel consistency)
Sets the consistency level for the query.
|
PreparedStatement |
PreparedStatement.setConsistencyLevel(ConsistencyLevel consistency)
Sets a default consistency level for all bound statements
created from this prepared statement.
|
Modifier and Type | Method and Description |
---|---|
ConsistencyLevel |
UnavailableException.getConsistency()
The consistency level of the operation triggering this unavailable exception.
|
ConsistencyLevel |
QueryTimeoutException.getConsistencyLevel()
The consistency level of the operation that time outed.
|
Constructor and Description |
---|
QueryTimeoutException(String msg,
ConsistencyLevel consistency,
int received,
int required) |
QueryTimeoutException(String msg,
Throwable cause,
ConsistencyLevel consistency,
int received,
int required) |
ReadTimeoutException(ConsistencyLevel consistency,
int received,
int required,
boolean dataPresent) |
UnavailableException(ConsistencyLevel consistency,
int required,
int alive) |
WriteTimeoutException(ConsistencyLevel consistency,
WriteType writeType,
int received,
int required) |
Modifier and Type | Method and Description |
---|---|
ConsistencyLevel |
RetryPolicy.RetryDecision.getRetryConsistencyLevel()
The consistency level for a retry decision.
|
Modifier and Type | Method and Description |
---|---|
RetryPolicy.RetryDecision |
RetryPolicy.onReadTimeout(Query query,
ConsistencyLevel cl,
int requiredResponses,
int receivedResponses,
boolean dataRetrieved,
int nbRetry)
Defines whether to retry and at which consistency level on a read timeout.
|
RetryPolicy.RetryDecision |
LoggingRetryPolicy.onReadTimeout(Query query,
ConsistencyLevel cl,
int requiredResponses,
int receivedResponses,
boolean dataRetrieved,
int nbRetry) |
RetryPolicy.RetryDecision |
FallthroughRetryPolicy.onReadTimeout(Query query,
ConsistencyLevel cl,
int requiredResponses,
int receivedResponses,
boolean dataRetrieved,
int nbRetry)
Defines whether to retry and at which consistency level on a read timeout.
|
RetryPolicy.RetryDecision |
DowngradingConsistencyRetryPolicy.onReadTimeout(Query query,
ConsistencyLevel cl,
int requiredResponses,
int receivedResponses,
boolean dataRetrieved,
int nbRetry)
Defines whether to retry and at which consistency level on a read timeout.
|
RetryPolicy.RetryDecision |
DefaultRetryPolicy.onReadTimeout(Query query,
ConsistencyLevel cl,
int requiredResponses,
int receivedResponses,
boolean dataRetrieved,
int nbRetry)
Defines whether to retry and at which consistency level on a read timeout.
|
RetryPolicy.RetryDecision |
RetryPolicy.onUnavailable(Query query,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry)
Defines whether to retry and at which consistency level on an
unavailable exception.
|
RetryPolicy.RetryDecision |
LoggingRetryPolicy.onUnavailable(Query query,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry) |
RetryPolicy.RetryDecision |
FallthroughRetryPolicy.onUnavailable(Query query,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry)
Defines whether to retry and at which consistency level on an
unavailable exception.
|
RetryPolicy.RetryDecision |
DowngradingConsistencyRetryPolicy.onUnavailable(Query query,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry)
Defines whether to retry and at which consistency level on an
unavailable exception.
|
RetryPolicy.RetryDecision |
DefaultRetryPolicy.onUnavailable(Query query,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry)
Defines whether to retry and at which consistency level on an
unavailable exception.
|
RetryPolicy.RetryDecision |
RetryPolicy.onWriteTimeout(Query query,
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 |
LoggingRetryPolicy.onWriteTimeout(Query query,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry) |
RetryPolicy.RetryDecision |
FallthroughRetryPolicy.onWriteTimeout(Query query,
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 |
DowngradingConsistencyRetryPolicy.onWriteTimeout(Query query,
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(Query query,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry)
Defines whether to retry and at which consistency level on a write timeout.
|
static RetryPolicy.RetryDecision |
RetryPolicy.RetryDecision.retry(ConsistencyLevel consistency)
Creates a RETRY retry decision using the provided consistency level.
|
Copyright © 2014. All Rights Reserved.