Package org.zeromq
Class ZPoller.ZPollItem
- java.lang.Object
-
- org.zeromq.ZMQ.PollItem
-
- org.zeromq.ZPoller.ZPollItem
-
- All Implemented Interfaces:
ZPoller.ItemHolder
- Enclosing class:
- ZPoller
public static class ZPoller.ZPollItem extends ZMQ.PollItem implements ZPoller.ItemHolder
-
-
Field Summary
Fields Modifier and Type Field Description private ZPoller.EventsHandler
handler
-
Constructor Summary
Constructors Constructor Description ZPollItem(java.nio.channels.SelectableChannel channel, ZPoller.EventsHandler handler, int ops)
ZPollItem(ZMQ.Socket socket, ZPoller.EventsHandler handler, int ops)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ZPoller.EventsHandler
handler()
int
hashCode()
PollItem
item()
ZMQ.Socket
socket()
-
Methods inherited from class org.zeromq.ZMQ.PollItem
base, getRawSocket, getSocket, isError, isReadable, isWritable, readyOps
-
-
-
-
Field Detail
-
handler
private final ZPoller.EventsHandler handler
-
-
Constructor Detail
-
ZPollItem
public ZPollItem(ZMQ.Socket socket, ZPoller.EventsHandler handler, int ops)
-
ZPollItem
public ZPollItem(java.nio.channels.SelectableChannel channel, ZPoller.EventsHandler handler, int ops)
-
-
Method Detail
-
item
public PollItem item()
- Specified by:
item
in interfaceZPoller.ItemHolder
-
socket
public ZMQ.Socket socket()
- Specified by:
socket
in interfaceZPoller.ItemHolder
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classZMQ.PollItem
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classZMQ.PollItem
-
handler
public ZPoller.EventsHandler handler()
- Specified by:
handler
in interfaceZPoller.ItemHolder
-
-