org.zeromq
类 ZLoop

java.lang.Object
  继承者 org.zeromq.ZLoop

public class ZLoop
extends java.lang.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.


嵌套类摘要
static interface ZLoop.IZLoopHandler
           
 
构造方法摘要
ZLoop()
           
 
方法摘要
 int addPoller(ZMQ.PollItem item_, ZLoop.IZLoopHandler handler, java.lang.Object arg)
           
 int addTimer(int delay, int times, ZLoop.IZLoopHandler handler, java.lang.Object arg)
           
 void destroy()
           
 void removePoller(ZMQ.PollItem item_)
           
 int removeTimer(java.lang.Object arg)
           
 int start()
           
 void verbose(boolean verbose)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ZLoop

public ZLoop()
方法详细信息

destroy

public void destroy()

addPoller

public int addPoller(ZMQ.PollItem item_,
                     ZLoop.IZLoopHandler handler,
                     java.lang.Object arg)

removePoller

public void removePoller(ZMQ.PollItem item_)

addTimer

public int addTimer(int delay,
                    int times,
                    ZLoop.IZLoopHandler handler,
                    java.lang.Object arg)

removeTimer

public int removeTimer(java.lang.Object arg)

verbose

public void verbose(boolean verbose)

start

public int start()