Class: Synapse::Configuration::CommandGatewayDefinitionBuilder

Inherits:
DefinitionBuilder show all
Defined in:
lib/synapse/configuration/component/command_bus/gateway.rb

Overview

TODO:

Support for command filters and retry scheduler

Definition builder used to create a command gateway

Examples:

The minimum possible effort to build a command gateway

gateway

Create a command gateway using an alternate command bus

gateway :alt_gateway do
  use_command_bus :alt_command_bus
end

Instance Attribute Summary

Attributes inherited from DefinitionBuilder

#id

Instance Method Summary collapse

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_command_bus(command_bus) ⇒ undefined

Changes the command bus that commands are sent from the gateway

Parameters:

  • command_bus (Symbol)

Returns:

  • (undefined)

See Also:



20
21
22
# File 'lib/synapse/configuration/component/command_bus/gateway.rb', line 20

def use_command_bus(command_bus)
  @command_bus = command_bus
end