org.apache.openejb.core.timer
Class MemoryTimerStore

java.lang.Object
  extended by org.apache.openejb.core.timer.MemoryTimerStore
All Implemented Interfaces:
TimerStore

public class MemoryTimerStore
extends java.lang.Object
implements TimerStore


Constructor Summary
MemoryTimerStore(javax.transaction.TransactionManager transactionManager)
           
 
Method Summary
 void addTimerData(TimerData timerData)
           
 TimerData createTimer(EjbTimerServiceImpl timerService, java.lang.String deploymentId, java.lang.Object primaryKey, java.lang.Object info, java.util.Date expiration, long intervalDuration)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryTimerStore

public MemoryTimerStore(javax.transaction.TransactionManager transactionManager)
Method Detail

getTimer

public TimerData getTimer(java.lang.String deploymentId,
                          long timerId)
Specified by:
getTimer in interface TimerStore

getTimers

public java.util.Collection<TimerData> getTimers(java.lang.String deploymentId)
Specified by:
getTimers in interface TimerStore

loadTimers

public java.util.Collection<TimerData> loadTimers(EjbTimerServiceImpl timerService,
                                                  java.lang.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

createTimer

public TimerData createTimer(EjbTimerServiceImpl timerService,
                             java.lang.String deploymentId,
                             java.lang.Object primaryKey,
                             java.lang.Object info,
                             java.util.Date expiration,
                             long intervalDuration)
                      throws TimerStoreException
Specified by:
createTimer 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-2011 The Apache OpenEJB development community. All Rights Reserved.