public abstract class QueryConsistencyException extends QueryExecutionException implements CoordinatorException
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(EndPoint endPoint,
String msg,
ConsistencyLevel consistency,
int received,
int required) |
protected |
QueryConsistencyException(EndPoint endPoint,
String msg,
Throwable cause,
ConsistencyLevel consistency,
int received,
int required) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getAddress()
Deprecated.
|
ConsistencyLevel |
getConsistencyLevel()
The consistency level of the operation that failed.
|
EndPoint |
getEndPoint()
The connection information of the coordinator host that was contacted.
|
InetAddress |
getHost()
Deprecated.
|
int |
getReceivedAcknowledgements()
The number of replicas that had acknowledged/responded to the operation before it failed.
|
int |
getRequiredAcknowledgements()
The minimum number of replica acknowledgements/responses that were required to fulfill the
operation.
|
copyaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected QueryConsistencyException(EndPoint endPoint, String msg, ConsistencyLevel consistency, int received, int required)
protected QueryConsistencyException(EndPoint endPoint, String msg, Throwable cause, ConsistencyLevel consistency, int received, int required)
public ConsistencyLevel getConsistencyLevel()
public int getReceivedAcknowledgements()
public int getRequiredAcknowledgements()
public EndPoint getEndPoint()
null if
the coordinator is not known.
Note that this is the information of the host that coordinated the query, not the one that timed out.
getEndPoint in interface CoordinatorException@Deprecated public InetSocketAddress getAddress()
CoordinatorExceptionnull if the
coordinator is not known.getAddress in interface CoordinatorException@Deprecated public InetAddress getHost()
CoordinatorExceptionnull if the coordinator is not known.getHost in interface CoordinatorExceptionCopyright © 2012–2023. All rights reserved.