Package org.zeromq
Interface ZPoller.ItemCreator
-
- All Known Implementing Classes:
ZPoller.SimpleCreator
- Enclosing class:
- ZPoller
public static interface ZPoller.ItemCreator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ZPoller.ItemHolder
create(java.nio.channels.SelectableChannel channel, ZPoller.EventsHandler handler, int events)
Creates a new holder for a poll item.ZPoller.ItemHolder
create(ZMQ.Socket socket, ZPoller.EventsHandler handler, int events)
Creates a new holder for a poll item.
-
-
-
Method Detail
-
create
ZPoller.ItemHolder create(ZMQ.Socket socket, ZPoller.EventsHandler handler, int events)
Creates a new holder for a poll item.- Parameters:
socket
- the socket to pollhandler
- the optional handler for polled eventsevents
- the interested events- Returns:
- a new poll item holder
-
create
ZPoller.ItemHolder create(java.nio.channels.SelectableChannel channel, ZPoller.EventsHandler handler, int events)
Creates a new holder for a poll item.- Parameters:
channel
- the channel to pollhandler
- the optional handler for polled events.events
- the interested events- Returns:
- a new poll item holder
-
-