public class CalendarTimerTask extends TimerTask<CalendarTimer>
timedObjectId, timerId, timerService
Constructor and Description |
---|
CalendarTimerTask(CalendarTimer calendarTimer) |
Modifier and Type | Method and Description |
---|---|
protected Date |
calculateNextTimeout(TimerImpl timer) |
protected void |
callTimeout(TimerImpl timer) |
protected void |
invokeBeanMethod(TimerImpl timer) |
protected void |
postTimeoutProcessing(TimerImpl timer)
After running the timer calculate the new state or expire the timer and persist it if changed.
|
protected void |
scheduleTimeoutIfRequired(TimerImpl timer) |
cancel, retryTimeout, run
public CalendarTimerTask(CalendarTimer calendarTimer)
calendarTimer
- protected void callTimeout(TimerImpl timer) throws Exception
callTimeout
in class TimerTask<CalendarTimer>
Exception
protected void invokeBeanMethod(TimerImpl timer) throws Exception
invokeBeanMethod
in class TimerTask<CalendarTimer>
Exception
protected Date calculateNextTimeout(TimerImpl timer)
calculateNextTimeout
in class TimerTask<CalendarTimer>
protected void scheduleTimeoutIfRequired(TimerImpl timer)
scheduleTimeoutIfRequired
in class TimerTask<CalendarTimer>
protected void postTimeoutProcessing(TimerImpl timer)
TimerTask
postTimeoutProcessing
in class TimerTask<CalendarTimer>
timer
- timer to post processing and persistCopyright © 2016 JBoss by Red Hat. All rights reserved.