Exception: Cassandra::Errors::ReadTimeoutError

Inherits:
StandardError
  • Object
show all
Includes:
ExecutionError
Defined in:
lib/cassandra/errors.rb

Overview

Raised when a read request timed out.

Instance Attribute Summary collapse

Method Summary

Methods included from ExecutionError

#execution_info

Instance Attribute Details

#consistencySymbol (readonly)

Returns the original consistency level for the request, one of CONSISTENCIES.

Returns:

  • (Symbol)

    the original consistency level for the request, one of CONSISTENCIES



294
295
296
# File 'lib/cassandra/errors.rb', line 294

def consistency
  @consistency
end

#receivedInteger (readonly)

Returns the number of responses received by the time the query timed out.

Returns:

  • (Integer)

    the number of responses received by the time the query timed out



300
301
302
# File 'lib/cassandra/errors.rb', line 300

def received
  @received
end

#requiredInteger (readonly)

Returns the number of responses required to achieve requested consistency level.

Returns:

  • (Integer)

    the number of responses required to achieve requested consistency level



297
298
299
# File 'lib/cassandra/errors.rb', line 297

def required
  @required
end

#retrievedBoolean (readonly) Also known as: retrieved?

Returns whether actual data (as opposed to data checksum) was present in the received responses.

Returns:

  • (Boolean)

    whether actual data (as opposed to data checksum) was present in the received responses.



289
290
291
# File 'lib/cassandra/errors.rb', line 289

def retrieved
  @retrieved
end