public class TimerUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Timer |
newTimerWithRecurringTask(Action task,
long delay,
long period)
Creates a new Timer instance.
|
static void |
stopTimer(Timer timer)
Stops the given Timer instance.
|
public static Timer newTimerWithRecurringTask(Action task, long delay, long period)
task - the task to be executed by the timerdelay - the delay before the task is executed for the first timeperiod - the period between subsequent executions of the taskpublic static void stopTimer(Timer timer)
timer - the Timer instance to stopCopyright © 1998–2025 Apryse Group NV. All rights reserved.