|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.timers.TimerTask
public abstract class TimerTask
The base class to implement a task to be scheduled and executed by an FaultTolerantScheduler.
| Constructor Summary | |
|---|---|
TimerTask(TimerTaskData data)
|
|
| Method Summary | |
|---|---|
void |
beforeRecover()
Invoked before a task is recovered, after fail over, by default simply adjust start time. |
TimerTaskData |
getData()
Retrieves the data associated with the task. |
protected java.util.concurrent.ScheduledFuture<?> |
getScheduledFuture()
Retrieves the schedule future object that returns from the task scheduling. |
protected SetTimerAfterTxCommitRunnable |
getSetTimerTransactionalAction()
Retrieves the tx action to set the timer when the tx commits, not used in a non tx environment. |
abstract void |
run()
The method executed by the scheduler |
protected void |
setScheduledFuture(java.util.concurrent.ScheduledFuture<?> scheduledFuture)
Sets the schedule future object that returns from the task scheduling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerTask(TimerTaskData data)
data - | Method Detail |
|---|
public TimerTaskData getData()
protected SetTimerAfterTxCommitRunnable getSetTimerTransactionalAction()
protected java.util.concurrent.ScheduledFuture<?> getScheduledFuture()
protected void setScheduledFuture(java.util.concurrent.ScheduledFuture<?> scheduledFuture)
scheduledFuture - public abstract void run()
run in interface java.lang.Runnablepublic void beforeRecover()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||