private final class HashedWheelTimer.Worker
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private long |
tick |
private java.util.Set<Timeout> |
unprocessedTimeouts |
Modifier | Constructor and Description |
---|---|
private |
Worker() |
Modifier and Type | Method and Description |
---|---|
private void |
processCancelledTasks() |
void |
run() |
private void |
transferTimeoutsToBuckets() |
java.util.Set<Timeout> |
unprocessedTimeouts() |
private long |
waitForNextTick()
calculate goal nanoTime from startTime and current tick number,
then wait until that goal has been reached.
|
private final java.util.Set<Timeout> unprocessedTimeouts
private long tick
public void run()
run
in interface java.lang.Runnable
private void transferTimeoutsToBuckets()
private void processCancelledTasks()
private long waitForNextTick()
public java.util.Set<Timeout> unprocessedTimeouts()