public class ZLoop
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ZLoop.IZLoopHandler |
private class |
ZLoop.SPoller |
private class |
ZLoop.STimer |
Modifier and Type | Field and Description |
---|---|
private ZMQ.Context |
context |
private boolean |
dirty |
private java.util.List<ZLoop.STimer> |
newTimers |
private ZLoop.SPoller[] |
pollact |
private java.util.List<ZLoop.SPoller> |
pollers |
private ZMQ.Poller |
pollset |
private int |
pollSize |
private java.util.List<ZLoop.STimer> |
timers |
private boolean |
verbose |
private java.util.List<java.lang.Object> |
zombies |
Constructor and Description |
---|
ZLoop(ZContext ctx) |
ZLoop(ZMQ.Context context) |
Modifier and Type | Method and Description |
---|---|
int |
addPoller(ZMQ.PollItem pollItem,
ZLoop.IZLoopHandler handler,
java.lang.Object arg) |
int |
addTimer(int delay,
int times,
ZLoop.IZLoopHandler handler,
java.lang.Object arg) |
void |
destroy()
Deprecated.
no-op behaviour
|
private void |
rebuild() |
void |
removePoller(ZMQ.PollItem pollItem) |
int |
removeTimer(java.lang.Object arg) |
int |
start() |
private long |
ticklessTimer() |
void |
verbose(boolean verbose) |
private final ZMQ.Context context
private final java.util.List<ZLoop.SPoller> pollers
private final java.util.List<ZLoop.STimer> timers
private int pollSize
private ZMQ.Poller pollset
private ZLoop.SPoller[] pollact
private boolean dirty
private boolean verbose
private final java.util.List<java.lang.Object> zombies
private final java.util.List<ZLoop.STimer> newTimers
public ZLoop(ZMQ.Context context)
public ZLoop(ZContext ctx)
@Deprecated public void destroy()
private void rebuild()
private long ticklessTimer()
public int addPoller(ZMQ.PollItem pollItem, ZLoop.IZLoopHandler handler, java.lang.Object arg)
public void removePoller(ZMQ.PollItem pollItem)
public int addTimer(int delay, int times, ZLoop.IZLoopHandler handler, java.lang.Object arg)
public int removeTimer(java.lang.Object arg)
public void verbose(boolean verbose)
public int start()