public abstract class QueryConsistencyException extends QueryExecutionException implements CoordinatorException
Modifier | Constructor and Description |
---|---|
protected |
QueryConsistencyException(InetSocketAddress address,
String msg,
ConsistencyLevel consistency,
int received,
int required) |
protected |
QueryConsistencyException(InetSocketAddress address,
String msg,
Throwable cause,
ConsistencyLevel consistency,
int received,
int required) |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getAddress()
The full address of the coordinator host that caused this exception to be thrown.
|
ConsistencyLevel |
getConsistencyLevel()
The consistency level of the operation that failed.
|
InetAddress |
getHost()
The coordinator host that caused this exception to be thrown.
|
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.
|
copy
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected QueryConsistencyException(InetSocketAddress address, String msg, ConsistencyLevel consistency, int received, int required)
protected QueryConsistencyException(InetSocketAddress address, String msg, Throwable cause, ConsistencyLevel consistency, int received, int required)
public ConsistencyLevel getConsistencyLevel()
public int getReceivedAcknowledgements()
public int getRequiredAcknowledgements()
public InetAddress getHost()
getHost
in interface CoordinatorException
null
if this exception has been generated driver-side.public InetSocketAddress getAddress()
getAddress
in interface CoordinatorException
null
if this exception has been generated driver-side.Copyright © 2012–2018. All rights reserved.