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

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



242
243
244
# File 'lib/cassandra/errors.rb', line 242

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



248
249
250
# File 'lib/cassandra/errors.rb', line 248

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



245
246
247
# File 'lib/cassandra/errors.rb', line 245

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



239
240
241
# File 'lib/cassandra/errors.rb', line 239

def type
  @type
end