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 TimerStore
public java.util.Collection<TimerData> getTimers(java.lang.String deploymentId)
getTimers
in interface TimerStore
public java.util.Collection<TimerData> loadTimers(EjbTimerServiceImpl timerService, java.lang.String deploymentId) throws TimerStoreException
loadTimers
in interface TimerStore
TimerStoreException
public void addTimerData(TimerData timerData) throws TimerStoreException
addTimerData
in interface TimerStore
TimerStoreException
public 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 TimerStore
TimerStoreException
public 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 TimerStore
TimerStoreException
public 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 TimerStore
TimerStoreException
public void removeTimer(long id)
removeTimer
in interface TimerStore
public void updateIntervalTimer(TimerData timerData)
updateIntervalTimer
in interface TimerStore