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 Type
    Method
    Description
    boolean
    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

      boolean events(ZMQ.Socket socket, int events)
      Called when the poller intercepts events.
      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

      boolean events(SelectableChannel channel, int events)
      Called when the poller intercepts events.
      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