Class: OMQ::GATHER
- Inherits:
-
Socket
- Object
- Socket
- 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 Method Summary collapse
-
#initialize(endpoints = nil, linger: Float::INFINITY, recv_hwm: nil, recv_timeout: nil, backend: nil) ⇒ GATHER
constructor
Creates a new GATHER socket.
Constructor Details
#initialize(endpoints = nil, linger: Float::INFINITY, recv_hwm: nil, recv_timeout: nil, backend: nil) ⇒ GATHER
Creates a new GATHER socket.
36 37 38 39 40 |
# File 'lib/omq/scatter_gather.rb', line 36 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 |