public class SimpleTimerTask
extends java.util.TimerTask
| Modifier and Type | Field and Description |
|---|---|
protected ErrorHandler |
handler |
protected DateTimeEntity |
lastRun |
protected Space |
space |
protected java.lang.Runnable |
task |
| Constructor and Description |
|---|
SimpleTimerTask(Space space) |
| Modifier and Type | Method and Description |
|---|---|
DateTimeEntity |
getLastRun() |
Space |
getSpace() |
void |
run() |
boolean |
runTask() |
void |
updateLastRun() |
SimpleTimerTask |
withDateTime(DateTimeEntity entity) |
SimpleTimerTask |
withTask(java.lang.Runnable task) |
protected final ErrorHandler handler
protected java.lang.Runnable task
protected Space space
protected DateTimeEntity lastRun
public SimpleTimerTask(Space space)
public SimpleTimerTask withDateTime(DateTimeEntity entity)
public DateTimeEntity getLastRun()
public void run()
run in interface java.lang.Runnablerun in class java.util.TimerTaskpublic void updateLastRun()
public boolean runTask()
throws java.lang.Exception
java.lang.Exceptionpublic SimpleTimerTask withTask(java.lang.Runnable task)
public Space getSpace()