public class MemoryTimerStore extends java.lang.Object implements TimerStore
| Constructor and Description |
|---|
MemoryTimerStore(TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTimerData(TimerData timerData) |
TimerData |
createCalendarTimer(EjbTimerServiceImpl timerService,
java.lang.String deploymentId,
java.lang.Object primaryKey,
java.lang.reflect.Method timeoutMethod,
ScheduleExpression scheduleExpression,
TimerConfig timerConfig,
boolean auto) |
TimerData |
createIntervalTimer(EjbTimerServiceImpl timerService,
java.lang.String deploymentId,
java.lang.Object primaryKey,
java.lang.reflect.Method timeoutMethod,
java.util.Date initialExpiration,
long intervalDuration,
TimerConfig timerConfig) |
TimerData |
createSingleActionTimer(EjbTimerServiceImpl timerService,
java.lang.String deploymentId,
java.lang.Object primaryKey,
java.lang.reflect.Method timeoutMethod,
java.util.Date expiration,
TimerConfig timerConfig) |
TimerData |
getTimer(java.lang.String deploymentId,
long timerId) |
java.util.Collection<TimerData> |
getTimers(java.lang.String deploymentId) |
java.util.Collection<TimerData> |
loadTimers(EjbTimerServiceImpl timerService,
java.lang.String deploymentId) |
void |
removeTimer(long id) |
void |
updateIntervalTimer(TimerData timerData) |
public TimerData getTimer(java.lang.String deploymentId, long timerId)
getTimer in interface TimerStorepublic java.util.Collection<TimerData> getTimers(java.lang.String deploymentId)
getTimers in interface TimerStorepublic java.util.Collection<TimerData> loadTimers(EjbTimerServiceImpl timerService, java.lang.String deploymentId) throws TimerStoreException
loadTimers in interface TimerStoreTimerStoreExceptionpublic void addTimerData(TimerData timerData) throws TimerStoreException
addTimerData in interface TimerStoreTimerStoreExceptionpublic TimerData createCalendarTimer(EjbTimerServiceImpl timerService, java.lang.String deploymentId, java.lang.Object primaryKey, java.lang.reflect.Method timeoutMethod, ScheduleExpression scheduleExpression, TimerConfig timerConfig, boolean auto) throws TimerStoreException
createCalendarTimer in interface TimerStoreTimerStoreExceptionpublic TimerData createIntervalTimer(EjbTimerServiceImpl timerService, java.lang.String deploymentId, java.lang.Object primaryKey, java.lang.reflect.Method timeoutMethod, java.util.Date initialExpiration, long intervalDuration, TimerConfig timerConfig) throws TimerStoreException
createIntervalTimer in interface TimerStoreTimerStoreExceptionpublic TimerData createSingleActionTimer(EjbTimerServiceImpl timerService, java.lang.String deploymentId, java.lang.Object primaryKey, java.lang.reflect.Method timeoutMethod, java.util.Date expiration, TimerConfig timerConfig) throws TimerStoreException
createSingleActionTimer in interface TimerStoreTimerStoreExceptionpublic void removeTimer(long id)
removeTimer in interface TimerStorepublic void updateIntervalTimer(TimerData timerData)
updateIntervalTimer in interface TimerStore