Class: Synapse::ProcessManager::SimpleProcessManager

Inherits:
ProcessManager show all
Defined in:
lib/synapse/process_manager/simple_process_manager.rb

Overview

Simple implementation of a process manager

Instance Attribute Summary collapse

Attributes inherited from ProcessManager

#factory, #lock_manager, #repository, #suppress_exceptions

Instance Method Summary collapse

Methods inherited from ProcessManager

#notify

Methods included from EventBus::EventListener

#notify

Constructor Details

#initialize(repository, factory, lock_manager, correlation_resolver, *process_types) ⇒ undefined

Parameters:



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_eventsArray

Returns Types of events that will always result in the creation of a process.

Returns:

  • (Array)

    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_eventsArray

Returns Types of events that will result in the creation of a process if one doesn’t already exist.

Returns:

  • (Array)

    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