primary constructor which immediately spins up a thread and begins ticking
primary constructor which immediately spins up a thread and begins ticking
number of spokes on the wheel. Each tick, the wheel will advance a spoke
duration between ticks
Schedule the Runnable
on the TickWheelExecutor
Schedule the Runnable
on the TickWheelExecutor
timeouts of Inf duration are ignored, timeouts of zero or negative duration are executed immediately on the submitting thread.
Runnable
to be executed
ExecutionContext
to submit the Runnable
Duration
to wait before execution
a Cancellable. This is not a java.util.concurrent.Cancellable
,
which is a richer interface.
Schedule the Runnable
on the TickWheelExecutor
Schedule the Runnable
on the TickWheelExecutor
Execution is performed on the TickWheelExecutors thread, so only extremely small tasks should be submitted with this method. timeouts of Inf duration are ignored, timeouts of zero or negative duration are executed immediately on the submitting thread.
Runnable
to be executed
Duration
to wait before execution
a Cancellable. This is not a java.util.concurrent.Cancellable
,
which is a richer interface.
Low resolution execution scheduler
The ideas for org.http4s.blaze.util.TickWheelExecutor is based off of loosely came from the Akka scheduler, which was based on the Netty HashedWheelTimer which was in term based on concepts in George Varghese and Tony Lauck's paper 'Hashed and Hierarchical Timing Wheels: data structures to efficiently implement a timer facility'