Exception: Cassandra::Errors::WriteTimeoutError

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

Overview

Raised when a write request timed out.

Instance Attribute Summary collapse

Attributes included from ExecutionError

#statement

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



158
159
160
# File 'lib/cassandra/errors.rb', line 158

def consistency
  @consistency
end

#receivedInteger (readonly)

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

Returns:

  • (Integer)

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



164
165
166
# File 'lib/cassandra/errors.rb', line 164

def received
  @received
end

#requiredInteger (readonly)

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

Returns:

  • (Integer)

    the number of acks required to achieve requested consistency level



161
162
163
# File 'lib/cassandra/errors.rb', line 161

def required
  @required
end

#typeSymbol (readonly)

Returns the type of write request that timed out, one of WRITE_TYPES.

Returns:

  • (Symbol)

    the type of write request that timed out, one of WRITE_TYPES



155
156
157
# File 'lib/cassandra/errors.rb', line 155

def type
  @type
end