class Cassandra::Errors::ReadTimeoutError

Raised when a read request timed out.

@see github.com/apache/cassandra/blob/cassandra-2.0.16/doc/native_protocol_v1.spec#L704-L721 Description

of Read Timeout Error in Apache Cassandra native protocol spec v1

Attributes

consistency[R]

@return [Symbol] the original consistency level for the request, one of

{Cassandra::CONSISTENCIES}
received[R]

@return [Integer] the number of responses received by the time the

query timed out
required[R]

@return [Integer] the number of responses required to achieve requested

consistency level
retrieved[R]

@return [Boolean] whether actual data (as opposed to data checksum) was

present in the received responses.
retrieved?[R]

@return [Boolean] whether actual data (as opposed to data checksum) was

present in the received responses.

Public Class Methods

new(message, payload, warnings, keyspace, statement, options, hosts, r_consistency, retries, retrieved, consistency, required, received) click to toggle source

@private

Calls superclass method Cassandra::Errors::ExecutionError::new
    # File lib/cassandra/errors.rb
303 def initialize(message,
304                payload,
305                warnings,
306                keyspace,
307                statement,
308                options,
309                hosts,
310                r_consistency,
311                retries,
312                retrieved,
313                consistency,
314                required,
315                received)
316   super(message,
317         payload,
318         warnings,
319         keyspace,
320         statement,
321         options,
322         hosts,
323         r_consistency,
324         retries)
325   @retrieved   = retrieved
326   @consistency = consistency
327   @required    = required
328   @received    = received
329 end