Class: OMQ::GATHER
- Includes:
- Readable, SingleFrame
- Defined in:
- lib/omq/scatter_gather.rb
Overview
Pipeline receiver socket that fair-queues from SCATTER peers (ZeroMQ RFC 49).
Instance Attribute Summary
Attributes inherited from Socket
Instance Method Summary collapse
-
#initialize(endpoints = nil, linger: Float::INFINITY, recv_hwm: nil, recv_timeout: nil, backend: nil) ⇒ GATHER
constructor
Creates a new GATHER socket.
Methods included from SingleFrame
Methods included from Readable
Methods included from QueueReadable
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, recv_hwm: nil, recv_timeout: nil, backend: nil) ⇒ GATHER
Creates a new GATHER socket.
46 47 48 49 50 |
# File 'lib/omq/scatter_gather.rb', line 46 def initialize(endpoints = nil, linger: Float::INFINITY, recv_hwm: nil, recv_timeout: nil, backend: nil) init_engine(:GATHER, recv_hwm: recv_hwm, recv_timeout: recv_timeout, backend: backend) @options.linger = linger attach_endpoints(endpoints, default: :bind) end |