public abstract class QueryTimeoutException extends QueryExecutionException implements CoordinatorException
Modifier | Constructor and Description |
---|---|
protected |
QueryTimeoutException(InetSocketAddress address,
String msg,
ConsistencyLevel consistency,
int received,
int required) |
protected |
QueryTimeoutException(InetSocketAddress address,
String msg,
Throwable cause,
ConsistencyLevel consistency,
int received,
int required) |
protected |
QueryTimeoutException(String msg,
ConsistencyLevel consistency,
int received,
int required)
Deprecated.
This constructor is kept for backwards compatibility.
|
protected |
QueryTimeoutException(String msg,
Throwable cause,
ConsistencyLevel consistency,
int received,
int required)
Deprecated.
This constructor is kept for backwards compatibility.
|
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 time outed.
|
InetAddress |
getHost()
The coordinator host that caused this exception to be thrown.
|
int |
getReceivedAcknowledgements()
The number of replica that had acknowledged/responded to the operation
before it time outed.
|
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
@Deprecated protected QueryTimeoutException(String msg, ConsistencyLevel consistency, int received, int required)
@Deprecated protected QueryTimeoutException(String msg, Throwable cause, ConsistencyLevel consistency, int received, int required)
protected QueryTimeoutException(InetSocketAddress address, String msg, ConsistencyLevel consistency, int received, int required)
protected QueryTimeoutException(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.