站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

NoopPersistencePolicy (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb.txtimer
Class NoopPersistencePolicy

java.lang.Object
  extended byorg.jboss.ejb.txtimer.NoopPersistencePolicy
All Implemented Interfaces:
NoopPersistencePolicyMBean, PersistencePolicy

public class NoopPersistencePolicy
extends Object
implements NoopPersistencePolicyMBean

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

Since:
09-Sep-2004
Author:
Thomas.Diesler@jboss.org

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.
 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(String timerId,
                        TimedObjectId timedObjectId,
                        Date firstEvent,
                        long periode,
                        Serializable info)
Creates the timer in persistent storage.

Specified by:
insertTimer in interface PersistencePolicy
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.
info - A serializable handback object.

deleteTimer

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

Specified by:
deleteTimer in interface PersistencePolicy
Parameters:
timerId - The timer id
timedObjectId - The id of the timed object

restoreTimers

public void restoreTimers()
Restore the persistet timers

Specified by:
restoreTimers in interface PersistencePolicy

listTimerHandles

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

Specified by:
listTimerHandles in interface PersistencePolicy

clearTimers

public void clearTimers()
Delete all persisted timers

Specified by:
clearTimers in interface PersistencePolicy


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.