public interface TimerPersistence
| Modifier and Type | Method and Description |
|---|---|
void |
addTimer(TimerEntity timerEntity)
Called when a timer is being persisted
|
List<TimerEntity> |
loadActiveTimers(String timedObjectId)
Load all active timers for the given object.
|
List<TimerEntity> |
loadActiveTimers(String timedObjectId,
Object primaryKey)
Load all active timers for the given entity bean with the given primary key
|
TimerEntity |
loadTimer(String id,
String timedObjectId)
Load a timer from persistent storage
|
void |
persistTimer(TimerEntity timerEntity)
Called when a timer is being persisted
|
void |
timerUndeployed(String timedObjectId)
Signals that a timer is being undeployed, and all cached data relating to this object should
be dropped to prevent a class loader leak
|
void addTimer(TimerEntity timerEntity)
timerEntity - void persistTimer(TimerEntity timerEntity)
timerEntity - void timerUndeployed(String timedObjectId)
timedObjectId - TimerEntity loadTimer(String id, String timedObjectId)
id - timedObjectId - List<TimerEntity> loadActiveTimers(String timedObjectId, Object primaryKey)
timedObjectId - The timed object id to load timers forprimaryKey - The primary key of the entity bean, or null for all timersList<TimerEntity> loadActiveTimers(String timedObjectId)
timedObjectId - The timed object id to load timers forCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.