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
Modifier and TypeMethodDescriptionboolean
events
(SelectableChannel channel, int events) Called when the poller intercepts events.boolean
events
(ZMQ.Socket socket, int events) Called when the poller intercepts events.
-
Method Details
-
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
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
-