Class: Aerospike::AdminPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/aerospike/policy/admin_policy.rb

Overview

Policy attributes used for user administration commands.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#timeoutObject

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