Package org.zeromq
Class ZPoller.ComposeEventsHandler
java.lang.Object
org.zeromq.ZPoller.ComposeEventsHandler
- All Implemented Interfaces:
ZPoller.EventsHandler
- Enclosing class:
ZPoller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction
<SelectableChannel, Integer, Boolean> private final BiFunction
<ZMQ.Socket, Integer, Boolean> -
Constructor Summary
ConstructorsConstructorDescriptionComposeEventsHandler
(BiFunction<ZMQ.Socket, Integer, Boolean> sockets, BiFunction<SelectableChannel, Integer, Boolean> channels) -
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.
-
Field Details
-
sockets
-
channels
-
-
Constructor Details
-
ComposeEventsHandler
public ComposeEventsHandler(BiFunction<ZMQ.Socket, Integer, Boolean> sockets, BiFunction<SelectableChannel, Integer, Boolean> channels)
-
-
Method Details
-
events
Description copied from interface:ZPoller.EventsHandler
Called when the poller intercepts events.- Specified by:
events
in interfaceZPoller.EventsHandler
- 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
Description copied from interface:ZPoller.EventsHandler
Called when the poller intercepts events.- Specified by:
events
in interfaceZPoller.EventsHandler
- 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
-