Performs an operation at the specified time.
Performs an operation after the specified delay.
log any Throwables caught by the internal TimerTask.
log any Throwables caught by the internal TimerTask.
By default we log to System.err but users may subclass and log elsewhere.
This method MUST NOT throw or else your Timer will die.
Run f
every elapsed period
, starting period
from now.
Run f
every elapsed period
, starting period
from now.
Run f
at time when
; subsequently run f
at every elapsed period
.
Run f
at time when
; subsequently run f
at every elapsed period
.
If when
is negative or undefined, it will be treated as Time.epoch.
If period
is negative or undefined, the timer task will be rescheduled
immediately (i.e., period
will be treated as Duration.Zero).
Run f
at time when
.
Run f
at time when
.
If when
is negative or undefined, it will be treated as Time.epoch.
Stop the timer.
A Timer that is implemented via a java.util.Timer.
This timer has millisecond granularity.
If your code has a reasonably high throughput of task scheduling and can trade off some precision of when tasks run, Finagle has a higher throughput hashed-wheel implementation.
Due to the implementation using a single
Thread
, be wary of scheduling tasks that take a long time to execute (e.g. blocking IO) as this blocks other tasks from running at their scheduled time.