Uses of Class
com.datastax.driver.core.ConsistencyLevel
-
Packages that use ConsistencyLevel Package Description com.datastax.driver.core The main package for the Java Driver for Cassandra.com.datastax.driver.core.exceptions Exceptions thrown by the ScyllaDB Java driver.com.datastax.driver.core.policies Policies that allow to control some of the behavior of the ScyllaDB Java driver. -
-
Uses of ConsistencyLevel in com.datastax.driver.core
Fields in com.datastax.driver.core declared as ConsistencyLevel Modifier and Type Field Description static ConsistencyLevelQueryOptions. DEFAULT_CONSISTENCY_LEVELThe default consistency level for queries:LOCAL_ONE.static ConsistencyLevelQueryOptions. DEFAULT_SERIAL_CONSISTENCY_LEVELThe default serial consistency level for conditional updates:SERIAL.Methods in com.datastax.driver.core that return ConsistencyLevel Modifier and Type Method Description ConsistencyLevelExecutionInfo. getAchievedConsistencyLevel()If the query returned without achieving the requested consistency level due to theRetryPolicy, this return the biggest consistency level that has been actually achieved by the query.ConsistencyLevelDefaultPreparedStatement. getConsistencyLevel()ConsistencyLevelPreparedStatement. getConsistencyLevel()Returns the default consistency level set throughPreparedStatement.setConsistencyLevel(com.datastax.driver.core.ConsistencyLevel).ConsistencyLevelQueryOptions. getConsistencyLevel()The default consistency level used by queries.ConsistencyLevelStatement. getConsistencyLevel()The consistency level for this query.ConsistencyLevelStatementWrapper. getConsistencyLevel()ConsistencyLevelDefaultPreparedStatement. getSerialConsistencyLevel()ConsistencyLevelPreparedStatement. getSerialConsistencyLevel()Returns the default serial consistency level set throughPreparedStatement.setSerialConsistencyLevel(com.datastax.driver.core.ConsistencyLevel).ConsistencyLevelQueryOptions. getSerialConsistencyLevel()The default serial consistency level used by queries.ConsistencyLevelStatement. getSerialConsistencyLevel()The serial consistency level for this query.ConsistencyLevelStatementWrapper. getSerialConsistencyLevel()static ConsistencyLevelConsistencyLevel. 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 Modifier and Type Method Description PreparedStatementDefaultPreparedStatement. setConsistencyLevel(ConsistencyLevel consistency)PreparedStatementPreparedStatement. setConsistencyLevel(ConsistencyLevel consistency)Sets a default consistency level for all bound statements created from this prepared statement.QueryOptionsQueryOptions. setConsistencyLevel(ConsistencyLevel consistencyLevel)Sets the default consistency level to use for queries.StatementStatement. setConsistencyLevel(ConsistencyLevel consistency)Sets the consistency level for the query.StatementStatementWrapper. setConsistencyLevel(ConsistencyLevel consistency)BatchStatementBatchStatement. setSerialConsistencyLevel(ConsistencyLevel serialConsistency)Sets the serial consistency level for the query.PreparedStatementDefaultPreparedStatement. setSerialConsistencyLevel(ConsistencyLevel serialConsistency)PreparedStatementPreparedStatement. setSerialConsistencyLevel(ConsistencyLevel serialConsistency)Sets a default serial consistency level for all bound statements created from this prepared statement.QueryOptionsQueryOptions. setSerialConsistencyLevel(ConsistencyLevel serialConsistencyLevel)Sets the default serial consistency level to use for queries.StatementStatement. setSerialConsistencyLevel(ConsistencyLevel serialConsistency)Sets the serial consistency level for the query.StatementStatementWrapper. setSerialConsistencyLevel(ConsistencyLevel serialConsistency)Constructors in com.datastax.driver.core with parameters of type ConsistencyLevel Constructor Description ExecutionInfo(int speculativeExecutions, int successfulExecutionIndex, List<Host> triedHosts, ConsistencyLevel achievedConsistency, Map<String,ByteBuffer> customPayload) -
Uses of ConsistencyLevel in com.datastax.driver.core.exceptions
Methods in com.datastax.driver.core.exceptions that return ConsistencyLevel Modifier and Type Method Description ConsistencyLevelQueryConsistencyException. getConsistencyLevel()The consistency level of the operation that failed.ConsistencyLevelUnavailableException. getConsistencyLevel()The consistency level of the operation triggering this unavailable exception.Constructors in com.datastax.driver.core.exceptions with parameters of type ConsistencyLevel Constructor Description CASWriteUnknownException(ConsistencyLevel consistency, int received, int required)This constructor should only be used internally by the driver when decoding error responses.CASWriteUnknownException(EndPoint endPoint, ConsistencyLevel consistency, int received, int required)QueryConsistencyException(EndPoint endPoint, String msg, ConsistencyLevel consistency, int received, int required)QueryConsistencyException(EndPoint endPoint, String msg, Throwable cause, ConsistencyLevel consistency, int received, int required)ReadFailureException(ConsistencyLevel consistency, int received, int required, int failed, boolean dataPresent)Deprecated.Legacy constructor for backward compatibility.ReadFailureException(ConsistencyLevel consistency, int received, int required, int failed, Map<InetAddress,Integer> failuresMap, boolean dataPresent)This constructor should only be used internally by the driver when decoding error responses.ReadFailureException(EndPoint endPoint, ConsistencyLevel consistency, int received, int required, int failed, boolean dataPresent)Deprecated.Legacy constructor for backward compatibility.ReadFailureException(EndPoint endPoint, ConsistencyLevel consistency, int received, int required, int failed, Map<InetAddress,Integer> failuresMap, boolean dataPresent)ReadTimeoutException(ConsistencyLevel consistency, int received, int required, boolean dataPresent)This constructor should only be used internally by the driver when decoding error responses.ReadTimeoutException(EndPoint endPoint, ConsistencyLevel consistency, int received, int required, boolean dataPresent)UnavailableException(ConsistencyLevel consistency, int required, int alive)This constructor should only be used internally by the driver when decoding error responses.UnavailableException(EndPoint endPoint, ConsistencyLevel consistency, int required, int alive)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(EndPoint endPoint, ConsistencyLevel consistency, WriteType writeType, int received, int required, int failed)Deprecated.Legacy constructor for backward compatibility.WriteFailureException(EndPoint endPoint, 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(EndPoint endPoint, 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 Modifier and Type Method Description ConsistencyLevelRetryPolicy.RetryDecision. getRetryConsistencyLevel()The consistency level for this retry decision.Methods in com.datastax.driver.core.policies with parameters of type ConsistencyLevel Modifier and Type Method Description RetryPolicy.RetryDecisionDefaultRetryPolicy. 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.RetryDecisionDowngradingConsistencyRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)Deprecated.Defines whether to retry and at which consistency level on a read timeout.RetryPolicy.RetryDecisionFallthroughRetryPolicy. 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.RetryDecisionIdempotenceAwareRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)Deprecated.RetryPolicy.RetryDecisionLoggingRetryPolicy. onReadTimeout(Statement statement, ConsistencyLevel cl, int requiredResponses, int receivedResponses, boolean dataRetrieved, int nbRetry)RetryPolicy.RetryDecisionRetryPolicy. 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.RetryDecisionDefaultRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Defines whether to retry and at which consistency level on an unexpected error.RetryPolicy.RetryDecisionDowngradingConsistencyRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Deprecated.Defines whether to retry and at which consistency level on an unexpected error.RetryPolicy.RetryDecisionFallthroughRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Defines whether to retry and at which consistency level on an unexpected error.RetryPolicy.RetryDecisionIdempotenceAwareRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Deprecated.RetryPolicy.RetryDecisionLoggingRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)RetryPolicy.RetryDecisionRetryPolicy. onRequestError(Statement statement, ConsistencyLevel cl, DriverException e, int nbRetry)Defines whether to retry and at which consistency level on an unexpected error.RetryPolicy.RetryDecisionDefaultRetryPolicy. 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.RetryDecisionDowngradingConsistencyRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)Deprecated.Defines whether to retry and at which consistency level on an unavailable exception.RetryPolicy.RetryDecisionFallthroughRetryPolicy. 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.RetryDecisionIdempotenceAwareRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)Deprecated.RetryPolicy.RetryDecisionLoggingRetryPolicy. onUnavailable(Statement statement, ConsistencyLevel cl, int requiredReplica, int aliveReplica, int nbRetry)RetryPolicy.RetryDecisionRetryPolicy. 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.RetryDecisionDefaultRetryPolicy. 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.RetryDecisionDowngradingConsistencyRetryPolicy. 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.RetryDecisionFallthroughRetryPolicy. 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.RetryDecisionIdempotenceAwareRetryPolicy. onWriteTimeout(Statement statement, ConsistencyLevel cl, WriteType writeType, int requiredAcks, int receivedAcks, int nbRetry)Deprecated.RetryPolicy.RetryDecisionLoggingRetryPolicy. onWriteTimeout(Statement statement, ConsistencyLevel cl, WriteType writeType, int requiredAcks, int receivedAcks, int nbRetry)RetryPolicy.RetryDecisionRetryPolicy. 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.static RetryPolicy.RetryDecisionRetryPolicy.RetryDecision. retry(ConsistencyLevel consistency)Creates aRetryPolicy.RetryDecision.Type.RETRYretry decision using the same host and the provided consistency level.static RetryPolicy.RetryDecisionRetryPolicy.RetryDecision. tryNextHost(ConsistencyLevel consistency)Creates aRetryPolicy.RetryDecision.Type.RETRYretry decision using the next host in the query plan, and using the provided consistency level.
-