org.jboss.ejb.txtimer
Class NoopPersistencePolicy

java.lang.Object
  extended byorg.jboss.ejb.txtimer.NoopPersistencePolicy

public class NoopPersistencePolicy
extends java.lang.Object

This service implements a PersistencePolicy that does not persist the timer.

Since:
09-Sep-2004

Constructor Summary
NoopPersistencePolicy()
           
 
Method Summary
 void clearTimers()
          Delete all persisted timers
 void deleteTimer(java.lang.String timerId, TimedObjectId (src)  timedObjectId)
          Removes the timer from persistent storage.
 void insertTimer(java.lang.String timerId, TimedObjectId (src)  timedObjectId, java.util.Date firstEvent, long periode, java.io.Serializable info)
          Creates the timer in persistent storage.
 java.util.List listTimerHandles()
          Return a List of TimerHandle objects.
 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

NoopPersistencePolicy

public NoopPersistencePolicy()
Method Detail

insertTimer

public void insertTimer(java.lang.String timerId,
                        TimedObjectId (src)  timedObjectId,
                        java.util.Date firstEvent,
                        long periode,
                        java.io.Serializable info)
Creates the timer in persistent storage.

Parameters:
timerId - The timer id
timedObjectId - The timed object id
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.

deleteTimer

public void deleteTimer(java.lang.String timerId,
                        TimedObjectId (src)  timedObjectId)
Removes the timer from persistent storage.

Parameters:
timerId - The timer id
timedObjectId - The id of the timed object

restoreTimers

public void restoreTimers()
Restore the persistet timers


listTimerHandles

public java.util.List listTimerHandles()
Return a List of TimerHandle objects.


clearTimers

public void clearTimers()
Delete all persisted timers