Class: Synapse::Configuration::MappingProcessManagerDefinitionBuilder
- Inherits:
-
DefinitionBuilder
- Object
- DefinitionBuilder
- Synapse::Configuration::MappingProcessManagerDefinitionBuilder
- Defined in:
- lib/synapse/configuration/component/process_manager/mapping_process_manager.rb
Overview
Definition builder used to create a mapping process manager
Since process managers are effectively listeners on the event bus, definitions created by this builder will be tagged with ‘:event_listener`
Instance Attribute Summary
Attributes inherited from DefinitionBuilder
Instance Method Summary collapse
-
#use_lock_manager(lock_manager) ⇒ undefined
Changes the lock manager to use with this process manager.
-
#use_pessimistic_locking ⇒ undefined
Changes the lock manager to a pessimistic lock manager.
-
#use_process_factory(process_factory) ⇒ undefined
Changes the process factory to use with this process manager.
-
#use_process_repository(process_repository) ⇒ undefined
Changes the process repository to use with this process manager.
-
#use_process_types(*process_types) ⇒ undefined
Changes the process types that are hosted by this process manager.
Methods inherited from DefinitionBuilder
#anonymous, #as_prototype, #as_singleton, build, #build_composite, #build_definition, #clear_tags, #identified_by, #initialize, #register_definition, #replace_tags, #tag, #use_factory, #use_instance
Constructor Details
This class inherits a constructor from Synapse::Configuration::DefinitionBuilder
Instance Method Details
#use_lock_manager(lock_manager) ⇒ undefined
Changes the lock manager to use with this process manager
29 30 31 |
# File 'lib/synapse/configuration/component/process_manager/mapping_process_manager.rb', line 29 def use_lock_manager(lock_manager) @lock_manager = lock_manager end |
#use_pessimistic_locking ⇒ undefined
Changes the lock manager to a pessimistic lock manager
37 38 39 |
# File 'lib/synapse/configuration/component/process_manager/mapping_process_manager.rb', line 37 def use_pessimistic_locking @lock_manager_type = ProcessManager::PessimisticLockManager end |
#use_process_factory(process_factory) ⇒ undefined
Changes the process factory to use with this process manager
46 47 48 |
# File 'lib/synapse/configuration/component/process_manager/mapping_process_manager.rb', line 46 def use_process_factory(process_factory) @process_factory = process_factory end |
#use_process_repository(process_repository) ⇒ undefined
Changes the process repository to use with this process manager
55 56 57 |
# File 'lib/synapse/configuration/component/process_manager/mapping_process_manager.rb', line 55 def use_process_repository(process_repository) @process_repository = process_repository end |
#use_process_types(*process_types) ⇒ undefined
Changes the process types that are hosted by this process manager
64 65 66 |
# File 'lib/synapse/configuration/component/process_manager/mapping_process_manager.rb', line 64 def use_process_types(*process_types) @process_types = process_types.flatten end |