| Constructor and Description |
|---|
Event(int event,
String addr,
Object arg) |
| Modifier and Type | Method and Description |
|---|---|
SelectableChannel |
getChannel(SocketBase socket)
Resolve the channel that was associated with this event.
|
static ZMQ.Event |
read(SocketBase s) |
static ZMQ.Event |
read(SocketBase s,
int flags) |
boolean |
write(SocketBase s) |
public boolean write(SocketBase s)
public SelectableChannel getChannel(SocketBase socket)
arg only 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.
socket - the socket that send the eventpublic static ZMQ.Event read(SocketBase s, int flags)
public static ZMQ.Event read(SocketBase s)
Copyright © 2022. All rights reserved.