#1946 - Adding clarification in docs about the HashedWheelTimer semantics
This commit is contained in:
parent
4204b31759
commit
8df2314bb3
3 changed files with 15 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ akka {
|
||||||
|
|
||||||
# Used to set the behavior of the scheduler.
|
# Used to set the behavior of the scheduler.
|
||||||
# Changing the default values may change the system behavior drastically so make sure
|
# Changing the default values may change the system behavior drastically so make sure
|
||||||
# you know what you're doing!
|
# you know what you're doing! See the Scheduler section of the Akka documentation for more details.
|
||||||
scheduler {
|
scheduler {
|
||||||
# The HashedWheelTimer (HWT) implementation from Netty is used as the default scheduler
|
# The HashedWheelTimer (HWT) implementation from Netty is used as the default scheduler
|
||||||
# in the system.
|
# in the system.
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,13 @@ You can schedule sending of messages to actors and execution of tasks (functions
|
||||||
You will get a ``Cancellable`` back that you can call :meth:`cancel` on to cancel the execution of the
|
You will get a ``Cancellable`` back that you can call :meth:`cancel` on to cancel the execution of the
|
||||||
scheduled operation.
|
scheduled operation.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
The default implementation of ``Scheduler`` used by Akka is based on the Netty ``HashedWheelTimer``.
|
||||||
|
It does not execute tasks at the exact time, but on every tick, it will run everything that is overdue.
|
||||||
|
The accuracy of the default Scheduler can be modified by the "ticks-per-wheel" and "tick-duration" configuration
|
||||||
|
properties. For more information, see: `HashedWheelTimers <http://www.cse.wustl.edu/~cdgill/courses/cs6874/TimingWheels.ppt>`_.
|
||||||
|
|
||||||
Some examples
|
Some examples
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,13 @@ You can schedule sending of messages to actors and execution of tasks (functions
|
||||||
You will get a ``Cancellable`` back that you can call :meth:`cancel` on to cancel the execution of the
|
You will get a ``Cancellable`` back that you can call :meth:`cancel` on to cancel the execution of the
|
||||||
scheduled operation.
|
scheduled operation.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
The default implementation of ``Scheduler`` used by Akka is based on the Netty ``HashedWheelTimer``.
|
||||||
|
It does not execute tasks at the exact time, but on every tick, it will run everything that is overdue.
|
||||||
|
The accuracy of the default Scheduler can be modified by the "ticks-per-wheel" and "tick-duration" configuration
|
||||||
|
properties. For more information, see: `HashedWheelTimers <http://www.cse.wustl.edu/~cdgill/courses/cs6874/TimingWheels.ppt>`_.
|
||||||
|
|
||||||
Some examples
|
Some examples
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue