Package org.zeromq
Class ZLoop
java.lang.Object
org.zeromq.ZLoop
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
addPoller
(ZMQ.PollItem item_, ZLoop.IZLoopHandler handler, Object arg) int
addTimer
(int delay, int times, ZLoop.IZLoopHandler handler, Object arg) void
destroy()
void
removePoller
(ZMQ.PollItem item_) int
removeTimer
(Object arg) int
start()
void
verbose
(boolean verbose)
-
Constructor Details
-
ZLoop
public ZLoop()
-
-
Method Details
-
destroy
public void destroy() -
addPoller
-
removePoller
-
addTimer
-
removeTimer
-
verbose
public void verbose(boolean verbose) -
start
public int start()
-