|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistencePolicy
Timers are persistent objects. In the event of a container crash, any single-event timers that have expired during the intervening time before container restart must cause the ejbTimeout method to be invoked upon restart. Any interval timers that have expired during the intervening time must cause the ejb- Timeout method to be invoked at least once upon restart.
Method Summary | |
---|---|
void |
clearTimers()
Clear the persisted timers |
void |
deleteTimer(String timerId,
TimedObjectId timedObjectId)
Deletes a timer from persistent storage. |
void |
insertTimer(String timerId,
TimedObjectId targetId,
Date firstEvent,
long periode,
Serializable info)
Inserts a timer into persistent storage. |
List |
listTimerHandles()
List all the persisted timer handles |
List |
listTimerHandles(javax.management.ObjectName containerId,
ClassLoader loader)
List the persisted timer handles for a particular container |
Method Detail |
---|
void insertTimer(String timerId, TimedObjectId targetId, Date firstEvent, long periode, Serializable info)
timerId
- The timer idtargetId
- The timed object idfirstEvent
- The point in time at which the first txtimer expiration must occur.periode
- The number of milliseconds that must elapse between txtimer expiration notifications.info
- A serializable handback object.void deleteTimer(String timerId, TimedObjectId timedObjectId)
timerId
- The timer idtimedObjectId
- The id of the timed objectList listTimerHandles(javax.management.ObjectName containerId, ClassLoader loader)
containerId
- The Container ObjectNameloader
- The ClassLoader to use for loading the handles
List listTimerHandles()
void clearTimers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |