public class FileTimerPersistence extends Object implements TimerPersistence, org.jboss.msc.service.Service<FileTimerPersistence>
SERVICE_NAME| Constructor and Description |
|---|
FileTimerPersistence(boolean createIfNotExists,
String path,
String pathRelativeTo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTimer(TimerImpl TimerImpl)
Called when a timer is being persisted
|
org.jboss.msc.value.InjectedValue<org.jboss.modules.ModuleLoader> |
getModuleLoader() |
org.jboss.msc.value.InjectedValue<PathManager> |
getPathManager() |
org.jboss.msc.value.InjectedValue<TransactionManager> |
getTransactionManager() |
org.jboss.msc.value.InjectedValue<TransactionSynchronizationRegistry> |
getTransactionSynchronizationRegistry() |
FileTimerPersistence |
getValue() |
List<TimerImpl> |
loadActiveTimers(String timedObjectId,
TimerServiceImpl timerService)
Load all active timers for the given object.
|
void |
persistTimer(TimerImpl TimerImpl)
Called when a timer is being persisted
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
timerUndeployed(String timedObjectId)
Signals that a timer is being undeployed, and all cached data relating to this object should
be dropped to prevent a class loader leak
|
public void start(org.jboss.msc.service.StartContext context)
start in interface org.jboss.msc.service.Service<FileTimerPersistence>public void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<FileTimerPersistence>public FileTimerPersistence getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<FileTimerPersistence>IllegalStateExceptionIllegalArgumentExceptionpublic void addTimer(TimerImpl TimerImpl)
TimerPersistenceaddTimer in interface TimerPersistencepublic void persistTimer(TimerImpl TimerImpl)
TimerPersistencepersistTimer in interface TimerPersistencepublic void timerUndeployed(String timedObjectId)
TimerPersistencetimerUndeployed in interface TimerPersistencepublic List<TimerImpl> loadActiveTimers(String timedObjectId, TimerServiceImpl timerService)
TimerPersistenceloadActiveTimers in interface TimerPersistencetimedObjectId - The timed object id to load timers forpublic org.jboss.msc.value.InjectedValue<TransactionManager> getTransactionManager()
public org.jboss.msc.value.InjectedValue<TransactionSynchronizationRegistry> getTransactionSynchronizationRegistry()
public org.jboss.msc.value.InjectedValue<org.jboss.modules.ModuleLoader> getModuleLoader()
public org.jboss.msc.value.InjectedValue<PathManager> getPathManager()
Copyright © 2014 JBoss by Red Hat. All rights reserved.