Class: RFlow::Broker
- Inherits:
-
ChildProcess
- Object
- ChildProcess
- RFlow::Broker
- Defined in:
- lib/rflow/broker.rb
Overview
A message broker process to mediate messages along a connection. The broker runs in a child process and will not return from ChildProcess#spawn!.
Direct Known Subclasses
Constant Summary
Constants inherited from ChildProcess
Instance Attribute Summary
Attributes inherited from ChildProcess
Class Method Summary collapse
-
.build(config) ⇒ RFlow::Connections::ZMQStreamer
Build the broker from the connection configuration.
Methods inherited from ChildProcess
#initialize, #shutdown!, #spawn!
Constructor Details
This class inherits a constructor from RFlow::ChildProcess
Class Method Details
.build(config) ⇒ RFlow::Connections::ZMQStreamer
Build the broker from the connection configuration. Only supports Configuration::ZMQStreamer configurations.
12 13 14 15 16 17 18 19 |
# File 'lib/rflow/broker.rb', line 12 def build(config) case config.class.name when 'RFlow::Configuration::ZMQStreamer' RFlow::Connections::ZMQStreamer.new(config) else raise ArgumentError, 'Only ZMQ brokers currently supported' end end |