Class: ZMQ::Socket::Push
- Inherits:
-
ZMQ::Socket
- Object
- ZMQ::Socket
- ZMQ::Socket::Push
- Includes:
- UpstreamSocket
- Defined in:
- lib/zmq/socket/push.rb,
ext/rbczmq/socket.c
Constant Summary collapse
- TYPE_STR =
ZMQ::Socket::Push
A socket of type ZMQ::Socket::Push is used by a pipeline node to send messages to downstream pipeline nodes. Messages are load-balanced to all connected downstream nodes. The ZMQ::Socket#recv function is not implemented for this socket type.
When a ZMQ::Socket::Push socket enters an exceptional state due to having reached the high water mark for all downstream nodes, or if there are no downstream nodes at all, then any ZMQ::Socket#send operations on the socket shall block until the exceptional state ends or at least one downstream node becomes available for sending; messages are not discarded.
Deprecated alias: ZMQ_DOWNSTREAM.
Summary of ZMQ::Socket::Push characteristics
- Compatible peer sockets
-
ZMQ::Socket::Pull
- Direction
-
Unidirectional
- Send/receive pattern
-
Send only
- Incoming routing strategy
-
N/A
- Outgoing routing strategy
-
Load-balanced
- ZMQ::Socket#hwm option action
-
Block
"PUSH"
Constants inherited from ZMQ::Socket
BOUND, CONNECTED, PENDING, PROTO_REXP
Instance Method Summary collapse
Methods included from UpstreamSocket
Methods inherited from ZMQ::Socket
#affinity, #affinity=, #backlog, #backlog=, #bind, #close, #connect, #connect_all, #endpoint, #endpoints, #events, #fd, handle_fsm_errors, #hwm, #hwm=, #identity=, #linger, #linger=, #mcast_loop=, #mcast_loop?, #monitor, #poll_readable?, #poll_writable?, #rate, #rate=, #raw=, #rcvbuf, #rcvbuf=, #rcvhwm, #rcvhwm=, #rcvmore?, #rcvtimeo, #rcvtimeo=, #readable?, #real_bind, #real_connect, #reconnect_ivl, #reconnect_ivl=, #reconnect_ivl_max, #reconnect_ivl_max=, #recovery_ivl, #recovery_ivl=, #recovery_ivl_msec, #recovery_ivl_msec=, #recv, #recv_frame, #recv_frame_nonblock, #recv_message, #recv_nonblock, #send, #send_frame, #send_message, #sendm, #sndbuf, #sndbuf=, #sndhwm, #sndhwm=, #sndtimeo, #sndtimeo=, #state, #subscribe, #swap, #swap=, #to_s, #type_str, #unsubscribe, unsupported_api, #verbose=, #writable?