Exception: Aerospike::Exceptions::Timeout

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

Instance Attribute Summary collapse

Attributes inherited from Aerospike

#result_code

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Timeout.



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

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

  super(ResultCode::TIMEOUT)
end

Instance Attribute Details

#failed_connectionsObject (readonly)

Returns the value of attribute failed_connections.



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

def failed_connections
  @failed_connections
end

#failed_nodesObject (readonly)

Returns the value of attribute failed_nodes.



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

def failed_nodes
  @failed_nodes
end

#iterationsObject (readonly)

Returns the value of attribute iterations.



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

def iterations
  @iterations
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



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

def timeout
  @timeout
end