Package org.zeromq
Class ZMQ.Event
java.lang.Object
org.zeromq.ZMQ.Event
- Enclosing class:
- ZMQ
Inner class: Event.
Monitor socket event class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the address.int
getEvent()
getValue()
static ZMQ.Event
recv
(ZMQ.Socket socket) Receive an event from a monitor socket.static ZMQ.Event
recv
(ZMQ.Socket socket, int flags) Receive an event from a monitor socket.
-
Constructor Details
-
Event
-
-
Method Details
-
getEvent
public int getEvent() -
getValue
-
getAddress
Get the address. For libzmq versions 3.2.x the address will be an empty string.- Returns:
-
recv
Receive an event from a monitor socket. For libzmq versions 3.2.x the address will be an empty string.- Parameters:
socket
- the socketflags
- the flags to apply to the receive operation.- Returns:
- the received event or null if no message was received.
- Throws:
ZMQException
-
recv
Receive an event from a monitor socket. Does a blocking recv. For libzmq versions 3.2.x the address will be an empty string.- Parameters:
socket
- the socket- Returns:
- the received event.
- Throws:
ZMQException
-