Package org.zeromq

Class ZLoop

java.lang.Object
org.zeromq.ZLoop

public class ZLoop extends Object
The ZLoop class provides an event-driven reactor pattern. The reactor handles zmq.PollItem items (pollers or writers, sockets or fds), and once-off or repeated timers. Its resolution is 1 msec. It uses a tickless timer to reduce CPU interrupts in inactive processes.
  • Constructor Details

  • Method Details

    • destroy

      @Deprecated public void destroy()
      Deprecated.
      no-op behaviour
    • addPoller

      public int addPoller(ZMQ.PollItem pollItem, ZLoop.IZLoopHandler handler, Object arg)
    • removePoller

      public void removePoller(ZMQ.PollItem pollItem)
    • addTimer

      public int addTimer(int delay, int times, ZLoop.IZLoopHandler handler, Object arg)
    • removeTimer

      public int removeTimer(Object arg)
    • verbose

      public void verbose(boolean verbose)
    • start

      public int start()