Class: ZookeeperCallbacks::WatcherCallback
- Defined in:
- lib/zookeeper/callbacks.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
wexists, awexists, wget, awget, wget_children, awget_children.
-
#state ⇒ Object
readonly
wexists, awexists, wget, awget, wget_children, awget_children.
-
#type ⇒ Object
readonly
wexists, awexists, wget, awget, wget_children, awget_children.
Attributes inherited from Callback
Instance Method Summary collapse
Methods inherited from Callback
#call, #completed?, #initialize
Constructor Details
This class inherits a constructor from ZookeeperCallbacks::Callback
Instance Attribute Details
#path ⇒ Object (readonly)
wexists, awexists, wget, awget, wget_children, awget_children
30 31 32 |
# File 'lib/zookeeper/callbacks.rb', line 30 def path @path end |
#state ⇒ Object (readonly)
wexists, awexists, wget, awget, wget_children, awget_children
30 31 32 |
# File 'lib/zookeeper/callbacks.rb', line 30 def state @state end |
#type ⇒ Object (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 |