org.apache.openejb.core.timer
Class MemoryTimerStore
java.lang.Object
org.apache.openejb.core.timer.MemoryTimerStore
- All Implemented Interfaces:
- TimerStore
public class MemoryTimerStore
- extends Object
- implements TimerStore
|
Method Summary |
void |
addTimerData(TimerData timerData)
|
TimerData |
createCalendarTimer(EjbTimerServiceImpl timerService,
String deploymentId,
Object primaryKey,
Method timeoutMethod,
javax.ejb.ScheduleExpression scheduleExpression,
javax.ejb.TimerConfig timerConfig,
boolean auto)
|
TimerData |
createIntervalTimer(EjbTimerServiceImpl timerService,
String deploymentId,
Object primaryKey,
Method timeoutMethod,
Date initialExpiration,
long intervalDuration,
javax.ejb.TimerConfig timerConfig)
|
TimerData |
createSingleActionTimer(EjbTimerServiceImpl timerService,
String deploymentId,
Object primaryKey,
Method timeoutMethod,
Date expiration,
javax.ejb.TimerConfig timerConfig)
|
TimerData |
getTimer(String deploymentId,
long timerId)
|
Collection<TimerData> |
getTimers(String deploymentId)
|
Collection<TimerData> |
loadTimers(EjbTimerServiceImpl timerService,
String deploymentId)
|
void |
removeTimer(long id)
|
void |
updateIntervalTimer(TimerData timerData)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryTimerStore
public MemoryTimerStore(TransactionManager transactionManager)
getTimer
public TimerData getTimer(String deploymentId,
long timerId)
- Specified by:
getTimer in interface TimerStore
getTimers
public Collection<TimerData> getTimers(String deploymentId)
- Specified by:
getTimers in interface TimerStore
loadTimers
public Collection<TimerData> loadTimers(EjbTimerServiceImpl timerService,
String deploymentId)
throws TimerStoreException
- Specified by:
loadTimers in interface TimerStore
- Throws:
TimerStoreException
addTimerData
public void addTimerData(TimerData timerData)
throws TimerStoreException
- Specified by:
addTimerData in interface TimerStore
- Throws:
TimerStoreException
createCalendarTimer
public TimerData createCalendarTimer(EjbTimerServiceImpl timerService,
String deploymentId,
Object primaryKey,
Method timeoutMethod,
javax.ejb.ScheduleExpression scheduleExpression,
javax.ejb.TimerConfig timerConfig,
boolean auto)
throws TimerStoreException
- Specified by:
createCalendarTimer in interface TimerStore
- Throws:
TimerStoreException
createIntervalTimer
public TimerData createIntervalTimer(EjbTimerServiceImpl timerService,
String deploymentId,
Object primaryKey,
Method timeoutMethod,
Date initialExpiration,
long intervalDuration,
javax.ejb.TimerConfig timerConfig)
throws TimerStoreException
- Specified by:
createIntervalTimer in interface TimerStore
- Throws:
TimerStoreException
createSingleActionTimer
public TimerData createSingleActionTimer(EjbTimerServiceImpl timerService,
String deploymentId,
Object primaryKey,
Method timeoutMethod,
Date expiration,
javax.ejb.TimerConfig timerConfig)
throws TimerStoreException
- Specified by:
createSingleActionTimer in interface TimerStore
- Throws:
TimerStoreException
removeTimer
public void removeTimer(long id)
- Specified by:
removeTimer in interface TimerStore
updateIntervalTimer
public void updateIntervalTimer(TimerData timerData)
- Specified by:
updateIntervalTimer in interface TimerStore
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.