|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 PersistencePolicytimerId - 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 PersistencePolicytimerId - The timer idtimedObjectId - The id of the timed objectpublic void clearTimers()
clearTimers in interface PersistencePolicypublic void restoreTimers()
public List listTimerHandles(javax.management.ObjectName containerId,
ClassLoader loader)
listTimerHandles in interface PersistencePolicyloader - The ClassLoader to use for loading the handlescontainerId - The Container ObjectName
public List listTimerHandles()
listTimerHandles in interface PersistencePolicypublic 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 | |||||||||