Package org.zeromq
Class ZMQ.Event
java.lang.Object
org.zeromq.ZMQ.Event
- Enclosing class:
ZMQ
Deprecated.
Inner class: Event.
Monitor socket event class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.intgetEvent()Deprecated.getValue()Deprecated.booleanisError()Deprecated.Used to check if the event is an error.booleanisWarn()Deprecated.Used to check if the event is a warning.static ZMQ.Eventrecv(ZMQ.Socket socket) Deprecated.Receive an event from a monitor socket.static ZMQ.Eventrecv(ZMQ.Socket socket, int flags) Deprecated.Receive an event from a monitor socket.<M> MDeprecated.Return the argument as an integer or a Enum of the appropriate type if available.
-
Field Details
-
event
private final int eventDeprecated. -
value
Deprecated. -
resolvedValue
Deprecated. -
address
Deprecated.
-
-
Constructor Details
-
Event
Deprecated. -
Event
Deprecated.
-
-
Method Details
-
recv
Deprecated.Receive an event from a monitor socket.- 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
Deprecated.Receive an event from a monitor socket. Does a blocking recv.- Parameters:
socket- the socket- Returns:
- the received event.
- Throws:
ZMQException
-
getEvent
public int getEvent()Deprecated. -
getValue
Deprecated. -
getAddress
Deprecated. -
isError
public boolean isError()Deprecated.Used to check if the event is an error.Generally, any event that define the errno is considered as an error.
- Returns:
- true if the evant was an error
-
isWarn
public boolean isWarn()Deprecated.Used to check if the event is a warning.Generally, any event that return an authentication failure is considered as a warning.
- Returns:
-
resolveValue
public <M> M resolveValue()Deprecated.Return the argument as an integer or a Enum of the appropriate type if available.It returns objects of type:
-
ZMonitor.ProtocolCodefor a handshake protocol error. -
ZMQ.Errorfor any other error. -
Integerwhen available. - null when no relevant value available.
- Type Parameters:
M- The expected type of the returned object- Returns:
- The resolved value.
-
-
ZEventinstead