Class: OMQ::PUSH
- Includes:
- Writable
- Defined in:
- lib/omq/push_pull.rb
Overview
PUSH socket — push messages to connected PULL peers via round-robin.
Constant Summary
Constants included from Writable
Instance Attribute Summary
Attributes inherited from Socket
#engine, #last_tcp_port, #options
Instance Method Summary collapse
-
#initialize(endpoints = nil, linger: Float::INFINITY, send_hwm: nil, send_timeout: nil, backend: nil, &block) ⇒ PUSH
constructor
A new instance of PUSH.
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, #last_endpoint, #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, &block) ⇒ PUSH
Returns a new instance of PUSH.
15 16 17 18 19 20 |
# File 'lib/omq/push_pull.rb', line 15 def initialize(endpoints = nil, linger: Float::INFINITY, send_hwm: nil, send_timeout: nil, backend: nil, &block) init_engine(:PUSH, send_hwm: send_hwm, send_timeout: send_timeout, backend: backend) @options.linger = linger attach_endpoints(endpoints, default: :connect) finalize_init(&block) end |