Class: ZK::EventHandlerSubscription::Base

Inherits:
Subscription::Base show all
Includes:
Logger
Defined in:
lib/zk/event_handler_subscription/base.rb

Direct Known Subclasses

Actor

Constant Summary collapse

ALL_EVENTS =
[:created, :deleted, :changed, :child].freeze
ALL_EVENT_SET =
Set.new(ALL_EVENTS).freeze

Instance Attribute Summary collapse

Attributes inherited from Subscription::Base

#callable, #parent

Instance Method Summary collapse

Methods included from Logger

#logger, wrapped_logger, wrapped_logger=

Methods inherited from Subscription::Base

#unregister, #unregistered?, #unsubscribe

Instance Attribute Details

#pathString

the path this subscription is for

Returns:

  • (String)

8
9
10
# File 'lib/zk/event_handler_subscription/base.rb', line 8

def path
  @path
end

Instance Method Details

#closeObject

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_parentObject

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_parentObject

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