org.apache.openejb.core.timer
Class DatabaseTimerStore
java.lang.Object
org.apache.openejb.core.timer.DatabaseTimerStore
- All Implemented Interfaces:
- TimerStore
public class DatabaseTimerStore
- extends java.lang.Object
- implements TimerStore
Constructor Summary |
protected |
DatabaseTimerStore(java.lang.String serverUniqueId,
javax.sql.DataSource datasource,
boolean useSequence)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseTimerStore
protected DatabaseTimerStore(java.lang.String serverUniqueId,
javax.sql.DataSource datasource,
boolean useSequence)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
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
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
addTimerData
public void addTimerData(TimerData timerData)
throws TimerStoreException
- Used to restore a Timer that was cancelled, but the Transaction has been rolled back.
- Specified by:
addTimerData
in interface TimerStore
- Throws:
TimerStoreException
removeTimer
public void removeTimer(long timerId)
- Specified by:
removeTimer
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
updateIntervalTimer
public void updateIntervalTimer(TimerData timerData)
- Specified by:
updateIntervalTimer
in interface TimerStore
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.