Class: ZookeeperCallbacks::DataCallback

Inherits:
Callback
  • Object
show all
Defined in:
lib/zookeeper/callbacks.rb

Instance Attribute Summary collapse

Attributes inherited from Callback

#completed, #context, #proc

Instance Method Summary collapse

Methods inherited from Callback

#call, #completed?, #initialize

Constructor Details

This class inherits a constructor from ZookeeperCallbacks::Callback

Instance Attribute Details

#data ⇒ Object (readonly)

aget, awget



39
40
41
# File 'lib/zookeeper/callbacks.rb', line 39

def data
  @data
end

#return_code ⇒ Object (readonly)

aget, awget



39
40
41
# File 'lib/zookeeper/callbacks.rb', line 39

def return_code
  @return_code
end

#stat ⇒ Object (readonly)

aget, awget



39
40
41
# File 'lib/zookeeper/callbacks.rb', line 39

def stat
  @stat
end

Instance Method Details

#initialize_context(hash) ⇒ Object



41
42
43
# File 'lib/zookeeper/callbacks.rb', line 41

def initialize_context(hash)
  @return_code, @data, @stat, @context = hash[:rc], hash[:data], hash[:stat], hash[:context]
end