| Constructor and Description |
|---|
Event(int event,
Object value,
String address) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
int |
getEvent() |
Object |
getValue() |
boolean |
isError()
Used to check if the event is an error.
|
boolean |
isWarn()
Used to check if the event is a warning.
|
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.
|
<M> M |
resolveValue()
Return the argument as an integer or a Enum of the appropriate type if available.
|
public static ZMQ.Event recv(ZMQ.Socket socket, int flags)
socket - the socketflags - the flags to apply to the receive operation.ZMQExceptionpublic static ZMQ.Event recv(ZMQ.Socket socket)
socket - the socketZMQExceptionpublic int getEvent()
public Object getValue()
public String getAddress()
public boolean isError()
Generally, any event that define the errno is considered as an error.
public boolean isWarn()
Generally, any event that return an authentication failure is considered as a warning.
public <M> M resolveValue()
ZMonitor.ProtocolCode for a handshake protocol error.ZMQ.Error for any other error.Integer when available.M - The expected type of the returned objectCopyright © 2022. All rights reserved.