Package org.jboss.netty.util
Class HashedWheelTimer.Worker
java.lang.Object
org.jboss.netty.util.HashedWheelTimer.Worker
- All Implemented Interfaces:
Runnable
- Enclosing class:
HashedWheelTimer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
private void
private long
calculate goal nanoTime from startTime and current tick number, then wait until that goal has been reached.
-
Field Details
-
unprocessedTimeouts
-
tick
private long tick
-
-
Constructor Details
-
Worker
private Worker()
-
-
Method Details
-
run
public void run() -
transferTimeoutsToBuckets
private void transferTimeoutsToBuckets() -
waitForNextTick
private long waitForNextTick()calculate goal nanoTime from startTime and current tick number, then wait until that goal has been reached.- Returns:
- Long.MIN_VALUE if received a shutdown request, current time otherwise (with Long.MIN_VALUE changed by +1)
-
unprocessedTimeouts
-