Class: Aerospike::AdminPolicy
- Inherits:
-
Object
- Object
- Aerospike::AdminPolicy
- Defined in:
- lib/aerospike/policy/admin_policy.rb
Overview
Policy attributes used for user administration commands.
Instance Attribute Summary collapse
-
#timeout ⇒ Object
User administration command socket timeout in milliseconds.
Instance Method Summary collapse
-
#initialize(opt = {}) ⇒ AdminPolicy
constructor
NewAdminPolicy generates a new AdminPolicy with default values.
Constructor Details
#initialize(opt = {}) ⇒ AdminPolicy
NewAdminPolicy generates a new AdminPolicy with default values.
27 28 29 |
# File 'lib/aerospike/policy/admin_policy.rb', line 27 def initialize(opt={}) @timeout = opt[:timeout] || 1 end |
Instance Attribute Details
#timeout ⇒ Object
User administration command socket timeout in milliseconds. Default is one second timeout.
24 25 26 |
# File 'lib/aerospike/policy/admin_policy.rb', line 24 def timeout @timeout end |