| org.jboss.ejb.txtimer.DatabasePersistencePolicy
DatabasePersistencePolicy | public class DatabasePersistencePolicy extends ServiceMBeanSupport implements DatabasePersistencePolicyMBean(Code) | | This service implements a PersistencePolicy that persistes the timer to a
database.
author: Thomas.Diesler@jboss.org author: Scott.Stark@jboss.org author: Dimitris.Andreadis@jboss.org version: $Revision: 62317 $ since: 09-Sep-2004 |
clearTimers | public void clearTimers()(Code) | | Delete all persisted timers
|
deleteTimer | public void deleteTimer(String timerId, TimedObjectId timedObjectId)(Code) | | Removes the timer from persistent storage.
Parameters: timerId - The timer id |
getDatabasePersistencePlugin | public String getDatabasePersistencePlugin()(Code) | | |
insertTimer | public void insertTimer(String timerId, TimedObjectId timedObjectId, Date firstEvent, long intervalDuration, Serializable info)(Code) | | Creates the timer in persistent storage.
Parameters: timerId - The timer id Parameters: timedObjectId - The timed object id Parameters: firstEvent - The point in time at which the first txtimer expiration must occur. Parameters: intervalDuration - The number of milliseconds that must elapse between txtimer expiration notifications. Parameters: info - A serializable handback object. |
listTimerHandles | public List listTimerHandles(ObjectName containerId, ClassLoader loader)(Code) | | List the persisted timer handles for a particular container
Parameters: containerId - The Container ObjectName Parameters: loader - The ClassLoader to use for loading the handles a list of TimerHandleImpl objects |
listTimerHandles | public List listTimerHandles()(Code) | | Return a List of TimerHandle objects.
|
resetAndRestoreTimers | public void resetAndRestoreTimers() throws SQLException(Code) | | Re-read the current persistent timers list, clear the db of timers,
and restore the timers.
|
restoreTimers | public void restoreTimers()(Code) | | Restore the persistent timers seen during service startup
|
setDatabasePersistencePlugin | public void setDatabasePersistencePlugin(String dbpPluginClass)(Code) | | |
setTimersTable | public void setTimersTable(String timersTable)(Code) | | |
startService | public void startService() throws Exception(Code) | | Initializes this service.
|
|
|