Class ZMQ.Event
java.lang.Object
zmq.ZMQ.Event
- Enclosing class:
ZMQ
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChannel(SocketBase socket) Resolve the channel that was associated with this event.static ZMQ.Eventread(SocketBase s) static ZMQ.Eventread(SocketBase s, int flags) booleanwrite(SocketBase s)
-
Field Details
-
VALUE_INTEGER
private static final int VALUE_INTEGER- See Also:
-
VALUE_CHANNEL
private static final int VALUE_CHANNEL- See Also:
-
event
public final int event -
addr
-
arg
-
flag
private final int flag
-
-
Constructor Details
-
Event
-
Event
-
-
Method Details
-
write
-
getChannel
Resolve the channel that was associated with this event. Implementation note: to be backward compatible,argonly store Integer value, so the channel is resolved using this call.Internally socket are kept using weak values, so it's better to retrieve the channel as early as possible, otherwise it might get lost.
- Parameters:
socket- the socket that send the event- Returns:
- the channel in the event, or null if was not a channel event.
-
read
-
read
-