public abstract class QueryConsistencyException extends QueryExecutionException
Such an exception is returned when the query has been tried by Cassandra but cannot be achieved with the requested consistency level because either:
Modifier | Constructor and Description |
---|---|
protected |
QueryConsistencyException(Node coordinator,
String message,
ConsistencyLevel consistencyLevel,
int received,
int blockFor,
ExecutionInfo executionInfo,
boolean writableStackTrace) |
Modifier and Type | Method and Description |
---|---|
int |
getBlockFor()
The minimum number of replica acknowledgements/responses that were required to fulfill the
operation.
|
ConsistencyLevel |
getConsistencyLevel()
The consistency level of the operation that failed.
|
int |
getReceived()
The number of replica that had acknowledged/responded to the operation before it failed.
|
getCoordinator
copy, getExecutionInfo, setExecutionInfo
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected QueryConsistencyException(@NonNull Node coordinator, @NonNull String message, @NonNull ConsistencyLevel consistencyLevel, int received, int blockFor, ExecutionInfo executionInfo, boolean writableStackTrace)
@NonNull public ConsistencyLevel getConsistencyLevel()
public int getReceived()
public int getBlockFor()
Copyright © 2017–2024. All rights reserved.