Class: Synapse::ProcessManager::SimpleProcessManager
- Inherits:
-
ProcessManager
- Object
- ProcessManager
- Synapse::ProcessManager::SimpleProcessManager
- Defined in:
- lib/synapse/process_manager/simple_process_manager.rb
Overview
Simple implementation of a process manager
Instance Attribute Summary collapse
-
#always_create_events ⇒ Array
Types of events that will always result in the creation of a process.
-
#optionally_create_events ⇒ Array
Types of events that will result in the creation of a process if one doesn’t already exist.
Attributes inherited from ProcessManager
#factory, #lock_manager, #repository, #suppress_exceptions
Instance Method Summary collapse
- #initialize(repository, factory, lock_manager, correlation_resolver, *process_types) ⇒ undefined constructor
Methods inherited from ProcessManager
Methods included from EventBus::EventListener
Constructor Details
#initialize(repository, factory, lock_manager, correlation_resolver, *process_types) ⇒ undefined
18 19 20 21 22 23 24 |
# File 'lib/synapse/process_manager/simple_process_manager.rb', line 18 def initialize(repository, factory, lock_manager, correlation_resolver, *process_types) super repository, factory, lock_manager, *process_types @correlation_resolver = correlation_resolver @always_create_events = Array.new @optionally_create_events = Array.new end |
Instance Attribute Details
#always_create_events ⇒ Array
Returns Types of events that will always result in the creation of a process.
6 7 8 |
# File 'lib/synapse/process_manager/simple_process_manager.rb', line 6 def always_create_events @always_create_events end |
#optionally_create_events ⇒ Array
Returns Types of events that will result in the creation of a process if one doesn’t already exist.
10 11 12 |
# File 'lib/synapse/process_manager/simple_process_manager.rb', line 10 def optionally_create_events @optionally_create_events end |