Package org.jboss.as.ejb3.timerservice
Class CalendarTimerTask
- java.lang.Object
-
- org.jboss.as.ejb3.timerservice.TimerTask
-
- org.jboss.as.ejb3.timerservice.CalendarTimerTask
-
-
Field Summary
-
Fields inherited from class org.jboss.as.ejb3.timerservice.TimerTask
timedObjectId, timerId, timerService
-
-
Constructor Summary
Constructors Constructor Description CalendarTimerTask(CalendarTimer calendarTimer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DatecalculateNextTimeout(TimerImpl timer)protected voidcallTimeout(TimerImpl timer)protected voidinvokeBeanMethod(TimerImpl timer)protected voidpostTimeoutProcessing(TimerImpl timer)After running the timer calculate the new state or expire the timer and persist it if changed.protected voidscheduleTimeoutIfRequired(TimerImpl timer)-
Methods inherited from class org.jboss.as.ejb3.timerservice.TimerTask
cancel, retryTimeout, run
-
-
-
-
Constructor Detail
-
CalendarTimerTask
public CalendarTimerTask(CalendarTimer calendarTimer)
-
-
Method Detail
-
callTimeout
protected void callTimeout(TimerImpl timer) throws Exception
- Overrides:
callTimeoutin classTimerTask- Throws:
Exception
-
invokeBeanMethod
protected void invokeBeanMethod(TimerImpl timer) throws Exception
- Overrides:
invokeBeanMethodin classTimerTask- Throws:
Exception
-
calculateNextTimeout
protected Date calculateNextTimeout(TimerImpl timer)
- Overrides:
calculateNextTimeoutin classTimerTask
-
scheduleTimeoutIfRequired
protected void scheduleTimeoutIfRequired(TimerImpl timer)
- Overrides:
scheduleTimeoutIfRequiredin classTimerTask
-
postTimeoutProcessing
protected void postTimeoutProcessing(TimerImpl timer) throws InterruptedException
Description copied from class:TimerTaskAfter running the timer calculate the new state or expire the timer and persist it if changed. The method must lock the timer for state check and updates if overridden.- Overrides:
postTimeoutProcessingin classTimerTask- Parameters:
timer- timer to post processing and persist- Throws:
InterruptedException
-
-