Class: OMQ::SCATTER
- Includes:
- SingleFrame, Writable
- Defined in:
- lib/omq/scatter_gather.rb
Overview
Pipeline sender socket that round-robins to GATHER peers (ZeroMQ RFC 49).
Instance Attribute Summary
Attributes inherited from Socket
Instance Method Summary collapse
-
#initialize(endpoints = nil, linger: Float::INFINITY, send_hwm: nil, send_timeout: nil, backend: nil) ⇒ SCATTER
constructor
Creates a new SCATTER socket.
Methods included from SingleFrame
Methods included from Writable
Methods included from QueueWritable
Methods inherited from Socket
#all_peers_gone, #attach_endpoints, bind, #bind, #close, #close_read, connect, #connect, #connection_count, #disconnect, #finalize_init, #init_engine, #inspect, #monitor, #peer_connected, #reconnect_enabled=, #set_unbounded, #stop, #subscriber_joined, #unbind
Constructor Details
#initialize(endpoints = nil, linger: Float::INFINITY, send_hwm: nil, send_timeout: nil, backend: nil) ⇒ SCATTER
Creates a new SCATTER socket.
26 27 28 29 30 |
# File 'lib/omq/scatter_gather.rb', line 26 def initialize(endpoints = nil, linger: Float::INFINITY, send_hwm: nil, send_timeout: nil, backend: nil) init_engine(:SCATTER, send_hwm: send_hwm, send_timeout: send_timeout, backend: backend) @options.linger = linger attach_endpoints(endpoints, default: :connect) end |