Class CassandraReadTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.TransientDataAccessException
org.springframework.dao.QueryTimeoutException
org.springframework.data.cassandra.CassandraReadTimeoutException
- All Implemented Interfaces:
Serializable
Cassandra-specific exception for a server-side timeout during a read query.
- Author:
- Matthew T. Adams, Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraReadTimeoutException(boolean wasDataPresent, String msg, Throwable cause) Constructor for QueryTimeoutException. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanMethods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CassandraReadTimeoutException
Constructor for QueryTimeoutException.- Parameters:
wasDataPresent- whether the actual data was amongst the received replica responses.msg- the detail message.cause- the root cause from the data access API in use.
-
-
Method Details
-
getWasDataReceived
Deprecated.since 3.0, usewasDataPresent().- Returns:
- whether the actual data was amongst the received replica responses.
-
wasDataPresent
public boolean wasDataPresent()- Returns:
- whether the actual data was amongst the received replica responses.
- Since:
- 3.0
-
wasDataPresent().