Exception: Aerospike::Exceptions::Timeout
- Defined in:
- lib/aerospike/aerospike_exception.rb
Instance Attribute Summary collapse
-
#failed_connections ⇒ Object
readonly
Returns the value of attribute failed_connections.
-
#iterations ⇒ Object
readonly
Returns the value of attribute iterations.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Attributes inherited from Aerospike
Instance Method Summary collapse
-
#initialize(timeout, iterations, failed_nodes = nil, failed_connections = nil) ⇒ Timeout
constructor
A new instance of Timeout.
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_connections ⇒ Object (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 |
#iterations ⇒ Object (readonly)
Returns the value of attribute iterations.
35 36 37 |
# File 'lib/aerospike/aerospike_exception.rb', line 35 def iterations @iterations end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
35 36 37 |
# File 'lib/aerospike/aerospike_exception.rb', line 35 def timeout @timeout end |