|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ConsistencyLevel | |
|---|---|
| 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. |
| Uses of ConsistencyLevel in com.datastax.driver.core |
|---|
| Fields in com.datastax.driver.core declared as ConsistencyLevel | |
|---|---|
static ConsistencyLevel |
QueryOptions.DEFAULT_CONSISTENCY_LEVEL
The default consistency level for queries: ConsistencyLevel.ONE. |
static ConsistencyLevel |
QueryOptions.DEFAULT_SERIAL_CONSISTENCY_LEVEL
The default serial consistency level for conditional updates: ConsistencyLevel.SERIAL. |
| Methods in com.datastax.driver.core that return ConsistencyLevel | |
|---|---|
static ConsistencyLevel |
ConsistencyLevel.fromCode(int code)
|
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 |
Statement.getConsistencyLevel()
The consistency level for this query. |
ConsistencyLevel |
QueryOptions.getConsistencyLevel()
The default consistency level used by queries. |
ConsistencyLevel |
PreparedStatement.getConsistencyLevel()
Returns the default consistency level set through PreparedStatement.setConsistencyLevel(com.datastax.driver.core.ConsistencyLevel). |
ConsistencyLevel |
Statement.getSerialConsistencyLevel()
The serial consistency level for this query. |
ConsistencyLevel |
QueryOptions.getSerialConsistencyLevel()
The default serial consistency level used by queries. |
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. |
| Methods in com.datastax.driver.core with parameters of type ConsistencyLevel | |
|---|---|
Statement |
Statement.setConsistencyLevel(ConsistencyLevel consistency)
Sets the consistency level for the query. |
QueryOptions |
QueryOptions.setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the default consistency level to use for queries. |
PreparedStatement |
PreparedStatement.setConsistencyLevel(ConsistencyLevel consistency)
Sets a default consistency level for all bound statements created from this prepared statement. |
Statement |
Statement.setSerialConsistencyLevel(ConsistencyLevel serialConsistency)
Sets the serial consistency level for the query. |
QueryOptions |
QueryOptions.setSerialConsistencyLevel(ConsistencyLevel serialConsistencyLevel)
Sets the default serial consistency level to use for queries. |
| Uses of ConsistencyLevel in com.datastax.driver.core.exceptions |
|---|
| Methods in com.datastax.driver.core.exceptions that return ConsistencyLevel | |
|---|---|
ConsistencyLevel |
QueryTimeoutException.getConsistencyLevel()
The consistency level of the operation that time outed. |
ConsistencyLevel |
UnavailableException.getConsistencyLevel()
The consistency level of the operation triggering this unavailable exception. |
| Constructors in com.datastax.driver.core.exceptions with parameters of type ConsistencyLevel | |
|---|---|
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)
|
|
| Uses of ConsistencyLevel in com.datastax.driver.core.policies |
|---|
| Methods in com.datastax.driver.core.policies that return ConsistencyLevel | |
|---|---|
ConsistencyLevel |
RetryPolicy.RetryDecision.getRetryConsistencyLevel()
The consistency level for a retry decision. |
| Methods in com.datastax.driver.core.policies with parameters of type ConsistencyLevel | |
|---|---|
RetryPolicy.RetryDecision |
DowngradingConsistencyRetryPolicy.onReadTimeout(Statement statement,
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(Statement statement,
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 |
FallthroughRetryPolicy.onReadTimeout(Statement statement,
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.onReadTimeout(Statement statement,
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(Statement statement,
ConsistencyLevel cl,
int requiredResponses,
int receivedResponses,
boolean dataRetrieved,
int nbRetry)
|
RetryPolicy.RetryDecision |
DowngradingConsistencyRetryPolicy.onUnavailable(Statement statement,
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(Statement statement,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry)
Defines whether to retry and at which consistency level on an unavailable exception. |
RetryPolicy.RetryDecision |
FallthroughRetryPolicy.onUnavailable(Statement statement,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry)
Defines whether to retry and at which consistency level on an unavailable exception. |
RetryPolicy.RetryDecision |
RetryPolicy.onUnavailable(Statement statement,
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(Statement statement,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry)
|
RetryPolicy.RetryDecision |
DowngradingConsistencyRetryPolicy.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. |
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 |
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 |
LoggingRetryPolicy.onWriteTimeout(Statement statement,
ConsistencyLevel cl,
WriteType writeType,
int requiredAcks,
int receivedAcks,
int nbRetry)
|
static RetryPolicy.RetryDecision |
RetryPolicy.RetryDecision.retry(ConsistencyLevel consistency)
Creates a RETRY retry decision using the provided consistency level. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||