Package org.zeromq
Interface ZPoller.EventsHandler
-
- All Known Implementing Classes:
ZActor.Double
,ZPoller.ComposeEventsHandler
,ZPoller.CompositePollItem
- Enclosing class:
- ZPoller
public static interface ZPoller.EventsHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
events(java.nio.channels.SelectableChannel channel, int events)
Called when the poller intercepts events.boolean
events(ZMQ.Socket socket, int events)
Called when the poller intercepts events.
-
-
-
Method Detail
-
events
boolean events(ZMQ.Socket socket, int events)
Called when the poller intercepts events.- Parameters:
socket
- the socket with eventsevents
- the interesting events as an ORed combination of IN, OUT, ERR- Returns:
- true to continue the polling, false to stop it
-
events
boolean events(java.nio.channels.SelectableChannel channel, int events)
Called when the poller intercepts events.- Parameters:
channel
- the channel with eventsevents
- the interesting events as an ORed combination of IN, OUT, ERR- Returns:
- true to continue the polling, false to stop it
-
-