Package org.zeromq

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 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​(java.nio.channels.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