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
ConstructorDescriptionCassandraReadTimeoutException
(boolean wasDataPresent, String msg, Throwable cause) Constructor forCassandraReadTimeoutException
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.boolean
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CassandraReadTimeoutException
Constructor forCassandraReadTimeoutException
.- Parameters:
wasDataPresent
- whether the actual data was amongst the received replica responses.msg
- the detail message.cause
- the root cause from the underlying data access API.
-
-
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()
.