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

public class CassandraReadTimeoutException extends org.springframework.dao.QueryTimeoutException
Cassandra-specific exception for a server-side timeout during a read query.
Author:
Matthew T. Adams, Mark Paluch
See Also:
  • Constructor Details

    • CassandraReadTimeoutException

      public CassandraReadTimeoutException(boolean wasDataPresent, String msg, Throwable cause)
      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 public boolean getWasDataReceived()
      Deprecated.
      since 3.0, use wasDataPresent().
      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