Class: ZK::EventHandlerSubscription::Base
- Inherits:
-
Subscription::Base
- Object
- Subscription::Base
- ZK::EventHandlerSubscription::Base
- Includes:
- Logger
- Defined in:
- lib/zk/event_handler_subscription/base.rb
Direct Known Subclasses
Constant Summary collapse
- ALL_EVENTS =
[:created, :deleted, :changed, :child].freeze
- ALL_EVENT_SET =
Set.new(ALL_EVENTS).freeze
Instance Attribute Summary collapse
-
#path ⇒ String
the path this subscription is for.
Attributes inherited from Subscription::Base
Instance Method Summary collapse
-
#close ⇒ Object
take any action to free resources associated with this subscription.
-
#pause_before_fork_in_parent ⇒ Object
stop anything non-fork-safe in parent.
-
#resume_after_fork_in_parent ⇒ Object
take any action necessary to deliver events after a fork in the parent.
Methods included from Logger
#logger, wrapped_logger, wrapped_logger=
Methods inherited from Subscription::Base
#unregister, #unregistered?, #unsubscribe
Instance Attribute Details
#path ⇒ String
the path this subscription is for
8 9 10 |
# File 'lib/zk/event_handler_subscription/base.rb', line 8 def path @path end |
Instance Method Details
#close ⇒ Object
take any action to free resources associated with this subscription
43 44 |
# File 'lib/zk/event_handler_subscription/base.rb', line 43 def close end |
#pause_before_fork_in_parent ⇒ Object
stop anything non-fork-safe in parent
47 48 |
# File 'lib/zk/event_handler_subscription/base.rb', line 47 def pause_before_fork_in_parent end |
#resume_after_fork_in_parent ⇒ Object
take any action necessary to deliver events after a fork in the parent
52 53 |
# File 'lib/zk/event_handler_subscription/base.rb', line 52 def resume_after_fork_in_parent end |