public class TimerExecutor extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
finalize() |
static TimerExecutor |
getInstance()
Singleton pattern
|
void |
startExecutionEach(CustomTimerTask task,
int targetHour,
int targetMin,
int targetSec)
Add a new CustomTimerTask to be executed
|
void |
startExecutionEveryDayAt(CustomTimerTask task,
int targetHour,
int targetMin,
int targetSec)
Add a new CustomTimerTask to be executed
|
void |
stop()
Stop the thread
|
public static TimerExecutor getInstance()
public void startExecutionEveryDayAt(CustomTimerTask task, int targetHour, int targetMin, int targetSec)
task - Task to executetargetHour - Hour to execute ittargetMin - Minute to execute ittargetSec - Second to execute itpublic void startExecutionEach(CustomTimerTask task, int targetHour, int targetMin, int targetSec)
task - Task to executetargetHour - Hour to execute ittargetMin - Minute to execute ittargetSec - Second to execute itpublic void stop()
Copyright © 2017. All rights reserved.