Class: ZookeeperCallbacks::WatcherCallback

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

#pathObject (readonly)

wexists, awexists, wget, awget, wget_children, awget_children



30
31
32
# File 'lib/zookeeper/callbacks.rb', line 30

def path
  @path
end

#stateObject (readonly)

wexists, awexists, wget, awget, wget_children, awget_children



30
31
32
# File 'lib/zookeeper/callbacks.rb', line 30

def state
  @state
end

#typeObject (readonly)

wexists, awexists, wget, awget, wget_children, awget_children



30
31
32
# File 'lib/zookeeper/callbacks.rb', line 30

def type
  @type
end

Instance Method Details

#initialize_context(hash) ⇒ Object



32
33
34
# File 'lib/zookeeper/callbacks.rb', line 32

def initialize_context(hash)
  @type, @state, @path, @context = hash[:type], hash[:state], hash[:path], hash[:context]
end