SendingTimerTaskpublic class SimpleTimerTask
extends java.util.TimerTask
| Modifier and Type | Field | Description |
|---|---|---|
protected ErrorHandler |
handler |
|
protected DateTimeEntity |
lastRun |
|
protected Space |
space |
|
protected java.lang.Runnable |
task |
| Constructor | Description |
|---|---|
SimpleTimerTask(Space space) |
| Modifier and Type | Method | 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 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()