Package org.zeromq

Interface ZPoller.ItemCreator

All Known Implementing Classes:
ZPoller.SimpleCreator
Enclosing class:
ZPoller

public static interface ZPoller.ItemCreator
  • Method Details

    • create

      ZPoller.ItemHolder create(ZMQ.Socket socket, ZPoller.EventsHandler handler, int events)
      Creates a new holder for a poll item.
      Parameters:
      socket - the socket to poll
      handler - the optional handler for polled events
      events - the interested events
      Returns:
      a new poll item holder
    • create

      ZPoller.ItemHolder create(SelectableChannel channel, ZPoller.EventsHandler handler, int events)
      Creates a new holder for a poll item.
      Parameters:
      channel - the channel to poll
      handler - the optional handler for polled events.
      events - the interested events
      Returns:
      a new poll item holder