class Cassandra::Errors::WriteTimeoutError
Raised when a write request timed out.
@see github.com/apache/cassandra/blob/cassandra-2.0.16/doc/native_protocol_v1.spec#L678-L703 Description
of Write 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 acks received by the time the query
timed out
required[R]
@return [Integer] the number of acks required to achieve requested
consistency level
type[R]
@return [Symbol] the type of write request that timed out, one of
{Cassandra::WRITE_TYPES}
Public Class Methods
new(message, payload, warnings, keyspace, statement, options, hosts, r_consistency, retries, type, consistency, required, received)
click to toggle source
@private
Calls superclass method
Cassandra::Errors::ExecutionError::new
# File lib/cassandra/errors.rb 251 def initialize(message, 252 payload, 253 warnings, 254 keyspace, 255 statement, 256 options, 257 hosts, 258 r_consistency, 259 retries, 260 type, 261 consistency, 262 required, 263 received) 264 super(message, 265 payload, 266 warnings, 267 keyspace, 268 statement, 269 options, 270 hosts, 271 r_consistency, 272 retries) 273 @type = type 274 @consistency = consistency 275 @required = required 276 @received = received 277 end