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

Attributes included from ExecutionError

#statement

Instance Method Summary collapse

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



188
189
190
# File 'lib/cassandra/errors.rb', line 188

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



194
195
196
# File 'lib/cassandra/errors.rb', line 194

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



191
192
193
# File 'lib/cassandra/errors.rb', line 191

def required
  @required
end

#retrievedBoolean (readonly)

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.



185
186
187
# File 'lib/cassandra/errors.rb', line 185

def retrieved
  @retrieved
end

Instance Method Details

#retrieved?Boolean

Returns:

  • (Boolean)


206
207
208
# File 'lib/cassandra/errors.rb', line 206

def retrieved?
  @retrieved
end