Class ZPoller.ComposeEventsHandler

java.lang.Object
org.zeromq.ZPoller.ComposeEventsHandler
All Implemented Interfaces:
ZPoller.EventsHandler
Enclosing class:
ZPoller

public static class ZPoller.ComposeEventsHandler extends Object implements ZPoller.EventsHandler
  • Constructor Details

  • Method Details

    • events

      public boolean events(ZMQ.Socket socket, int events)
      Description copied from interface: ZPoller.EventsHandler
      Called when the poller intercepts events.
      Specified by:
      events in interface ZPoller.EventsHandler
      Parameters:
      socket - the socket with events
      events - the interesting events as an ORed combination of IN, OUT, ERR
      Returns:
      true to continue the polling, false to stop it
    • events

      public boolean events(SelectableChannel channel, int events)
      Description copied from interface: ZPoller.EventsHandler
      Called when the poller intercepts events.
      Specified by:
      events in interface ZPoller.EventsHandler
      Parameters:
      channel - the channel with events
      events - the interesting events as an ORed combination of IN, OUT, ERR
      Returns:
      true to continue the polling, false to stop it