|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.txtimer.NoopPersistencePolicy
public class NoopPersistencePolicy
This service implements a PersistencePolicy that does not persist the timer.
Field Summary |
---|
Fields inherited from interface org.jboss.ejb.txtimer.NoopPersistencePolicyMBean |
---|
OBJECT_NAME |
Constructor Summary | |
---|---|
NoopPersistencePolicy()
|
Method Summary | |
---|---|
void |
clearTimers()
Delete all persisted timers |
void |
deleteTimer(String timerId,
TimedObjectId timedObjectId)
Removes the timer from persistent storage. |
void |
insertTimer(String timerId,
TimedObjectId timedObjectId,
Date firstEvent,
long periode,
Serializable info)
Creates the timer in persistent storage. |
List |
listTimerHandles()
Return a List of TimerHandle objects. |
List |
listTimerHandles(javax.management.ObjectName containerId,
ClassLoader loader)
List the persisted timer handles |
List |
listTimerHandles(TimedObjectId timedObjectId)
List the persisted timers for a particular TimerObjectId, or all persisted timers if timedObjectId is null. |
void |
restoreTimers()
Restore the persistet timers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoopPersistencePolicy()
Method Detail |
---|
public void insertTimer(String timerId, TimedObjectId timedObjectId, Date firstEvent, long periode, Serializable info)
insertTimer
in interface PersistencePolicy
timerId
- The timer idtimedObjectId
- The timed object idfirstEvent
- The point in time at which the first txtimer expiration must occur.firstEvent
- The point in time at which the first txtimer expiration must occur.periode
- The number of milliseconds that must elapse between txtimer expiration notifications.info
- A serializable handback object.public void deleteTimer(String timerId, TimedObjectId timedObjectId)
deleteTimer
in interface PersistencePolicy
timerId
- The timer idtimedObjectId
- The id of the timed objectpublic void clearTimers()
clearTimers
in interface PersistencePolicy
public void restoreTimers()
public List listTimerHandles(javax.management.ObjectName containerId, ClassLoader loader)
listTimerHandles
in interface PersistencePolicy
loader
- The ClassLoader to use for loading the handlescontainerId
- The Container ObjectName
public List listTimerHandles()
listTimerHandles
in interface PersistencePolicy
public List listTimerHandles(TimedObjectId timedObjectId)
timedObjectId
- The id of the timed object, or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |