Exception: Aerospike::Exceptions::Timeout

Inherits:
Aerospike
  • Object
show all
Defined in:
lib/aerospike/aerospike_exception.rb

Instance Attribute Summary collapse

Attributes inherited from Aerospike

#failed_nodes, #result_code

Instance Method Summary collapse

Constructor Details

#initialize(timeout, iterations, failed_nodes = nil, failed_connections = nil) ⇒ Timeout

Returns a new instance of Timeout.



37
38
39
40
41
42
43
# File 'lib/aerospike/aerospike_exception.rb', line 37

def initialize(timeout, iterations, failed_nodes=nil, failed_connections=nil)
  @timeout = timeout
  @iterations = iterations
  @failed_connections = failed_connections

  super(ResultCode::TIMEOUT, nil, failed_nodes)
end

Instance Attribute Details

#failed_connectionsObject (readonly)

Returns the value of attribute failed_connections.



35
36
37
# File 'lib/aerospike/aerospike_exception.rb', line 35

def failed_connections
  @failed_connections
end

#iterationsObject (readonly)

Returns the value of attribute iterations.



35
36
37
# File 'lib/aerospike/aerospike_exception.rb', line 35

def iterations
  @iterations
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



35
36
37
# File 'lib/aerospike/aerospike_exception.rb', line 35

def timeout
  @timeout
end