Class: OMQ::PULL
- Includes:
- Readable
- Defined in:
- lib/omq/push_pull.rb
Overview
PULL socket — receive messages from PUSH peers via fair-queue.
Instance Attribute Summary
Attributes inherited from Socket
#engine, #last_tcp_port, #options
Instance Method Summary collapse
-
#initialize(endpoints = nil, linger: 0, recv_hwm: nil, recv_timeout: nil, backend: nil) ⇒ PULL
constructor
A new instance of PULL.
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, #init_engine, #inspect, #last_endpoint, #monitor, #peer_connected, #reconnect_enabled=, #set_unbounded, #stop, #subscriber_joined, #unbind
Constructor Details
#initialize(endpoints = nil, linger: 0, recv_hwm: nil, recv_timeout: nil, backend: nil) ⇒ PULL
Returns a new instance of PULL.
33 34 35 36 |
# File 'lib/omq/push_pull.rb', line 33 def initialize(endpoints = nil, linger: 0, recv_hwm: nil, recv_timeout: nil, backend: nil) init_engine(:PULL, linger: linger, recv_hwm: recv_hwm, recv_timeout: recv_timeout, backend: backend) attach_endpoints(endpoints, default: :bind) end |