Package org.jboss.as.ejb3.timerservice
Class CalendarTimerTask
java.lang.Object
org.jboss.as.ejb3.timerservice.TimerTask
org.jboss.as.ejb3.timerservice.CalendarTimerTask
- All Implemented Interfaces:
Runnable
CalendarTimerTask
- Version:
- $Revision: $
- Author:
- Jaikiran Pai
-
Field Summary
Fields inherited from class org.jboss.as.ejb3.timerservice.TimerTask
timedObjectId, timerId, timerService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 voidMethods inherited from class org.jboss.as.ejb3.timerservice.TimerTask
cancel, retryTimeout, run
-
Constructor Details
-
CalendarTimerTask
-
-
Method Details
-
callTimeout
- Overrides:
callTimeoutin classTimerTask- Throws:
Exception
-
invokeBeanMethod
- Overrides:
invokeBeanMethodin classTimerTask- Throws:
Exception
-
calculateNextTimeout
- Overrides:
calculateNextTimeoutin classTimerTask
-
scheduleTimeoutIfRequired
- Overrides:
scheduleTimeoutIfRequiredin classTimerTask
-
postTimeoutProcessing
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
-