public interface SafeTimer
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel this timer.
|
long |
now()
This retrieves the current time on this box.
|
default void |
schedule(SafeTimerTask task,
java.time.Duration delay) |
default void |
schedule(SafeTimerTask task,
java.time.Duration delay,
java.time.Duration period) |
void |
schedule(SafeTimerTask task,
long delay) |
void |
schedule(SafeTimerTask task,
long delay,
long period) |
default void |
scheduleAtFixedRate(SafeTimerTask task,
java.time.Duration period)
Schedule at a fixed rate with no delay.
|
default void |
scheduleAtFixedRate(SafeTimerTask task,
java.time.Duration delay,
java.time.Duration period) |
void |
scheduleAtFixedRate(SafeTimerTask task,
long period)
Schedule at a fixed rate with no delay.
|
void |
scheduleAtFixedRate(SafeTimerTask task,
long delay,
long period) |
long now()
void schedule(SafeTimerTask task, long delay)
Timer.schedule(TimerTask, long)default void schedule(SafeTimerTask task, java.time.Duration delay)
Timer.schedule(TimerTask, long)void schedule(SafeTimerTask task, long delay, long period)
Timer.schedule(TimerTask, long, long)default void schedule(SafeTimerTask task, java.time.Duration delay, java.time.Duration period)
Timer.schedule(TimerTask, long, long)void scheduleAtFixedRate(SafeTimerTask task, long delay, long period)
Timer.scheduleAtFixedRate(TimerTask, long, long)default void scheduleAtFixedRate(SafeTimerTask task, java.time.Duration delay, java.time.Duration period)
Timer.scheduleAtFixedRate(TimerTask, long, long)void scheduleAtFixedRate(SafeTimerTask task, long period)
Timer.scheduleAtFixedRate(TimerTask, long, long)default void scheduleAtFixedRate(SafeTimerTask task, java.time.Duration period)
Timer.scheduleAtFixedRate(TimerTask, long, long)void cancel()