Class: Euston::DaemonComponent
- Inherits:
-
Object
- Object
- Euston::DaemonComponent
- Includes:
- Euston::Daemons::Exceptions, Hollywood
- Defined in:
- lib/euston-daemons/euston/daemon_component.rb
Direct Known Subclasses
Euston::Daemons::Pipeline::CommandLogger::Component, Euston::Daemons::Pipeline::CommandProcessor::Component, Euston::Daemons::Pipeline::EventProcessor::Component, Euston::Daemons::Pipeline::EventStoreDispatcher::Component, Euston::Daemons::Pipeline::MessageBuffer::Component, Euston::Daemons::Pipeline::Snapshotter::Component
Instance Method Summary collapse
Methods included from Euston::Daemons::Exceptions
Instance Method Details
#run ⇒ Object
6 7 8 |
# File 'lib/euston-daemons/euston/daemon_component.rb', line 6 def run next_iteration unless stopped end |
#stop ⇒ Object
10 11 12 13 |
# File 'lib/euston-daemons/euston/daemon_component.rb', line 10 def stop @stopped = true @channel.close unless @channel.nil? || !@channel.respond_to?(:close) end |