| org.jboss.ejb.txtimer.EJBTimerService
EJBTimerService | public interface EJBTimerService (Code) | | A service that implements this interface provides a Tx aware EJBTimerService.
author: Thomas.Diesler@jboss.org author: Dimitris.Andreadis@jboss.org version: $Revision: 57209 $ since: 07-Apr-2004 |
createTimerService | TimerService createTimerService(ObjectName containerId, Object pKey, Container container) throws IllegalStateException(Code) | | Create a TimerService for a given containerId/pKey (TimedObjectId) that lives in a JBoss Container.
The TimedObjectInvoker is constructed from the invokerClassName.
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: pKey - The primary key for an instance of a TimedObject, may be null Parameters: container - The Container that is associated with the TimerService the TimerService |
createTimerService | TimerService createTimerService(ObjectName containerId, Object pKey, TimedObjectInvoker invoker) throws IllegalStateException(Code) | | Create a TimerService for a given containerId/pKey (TimedObjectId) that is invoked through the given invoker.
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: pKey - The primary key for an instance of a TimedObject, may be null Parameters: invoker - The TimedObjectInvoker the TimerService |
getTimerService | TimerService getTimerService(ObjectName containerId, Object pKey) throws IllegalStateException(Code) | | Get the TimerService for a given containerId/pKey (TimedObjectId).
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: pKey - The primary key for an instance of a TimedObject, may be null The TimerService, or null if it does not exist |
removeTimerService | void removeTimerService(ObjectName containerId, Object pKey) throws IllegalStateException(Code) | | Remove the TimerService for a given containerId/pKey (TimedObjectId),
along with any persisted timer information.
This should be used for removing the TimerService and Timers
associated with a particular entity bean, when it gets removed.
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: pKey - The primary key for an instance of a TimedObject, may be null |
removeTimerService | void removeTimerService(ObjectName containerId, boolean keepState) throws IllegalStateException(Code) | | Remove the TimerService for a given containerId.
This should be used to remove the timer service and timers for
any type of container (session, entity, message) at the time of
undeployment.
Parameters: containerId - The string identifier for a class of TimedObjects Parameters: keepState - Flag indicating whether timer persistent state should be kept or removed |
restoreTimers | void restoreTimers(ObjectName containerId, ClassLoader loader) throws IllegalStateException(Code) | | Restore the persisted timers for a given ejb container
Parameters: containerId - The ejb container id Parameters: loader - The classloader to use for loading the timers |
|
|