Package com.sun.ejb.containers
Class EJBTimerService.TimerCache
- java.lang.Object
-
- com.sun.ejb.containers.EJBTimerService.TimerCache
-
- Enclosing class:
- EJBTimerService
public static class EJBTimerService.TimerCache extends Object
-
-
Constructor Summary
Constructors Constructor Description TimerCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTimer(TimerPrimaryKey timerId, RuntimeTimerState timerState)
boolean
containerHasTimers(long containerId)
boolean
entityBeanHasTimers(long containerId, Object pkey)
Set<TimerPrimaryKey>
getNonPersistentActiveTimerIdsByThisServer()
Set<TimerPrimaryKey>
getNonPersistentActiveTimerIdsForContainer(long containerId_)
Set<TimerPrimaryKey>
getNonPersistentTimerIdsForContainer(long containerId_)
RuntimeTimerState
getNonPersistentTimerState(TimerPrimaryKey timerId)
RuntimeTimerState
getTimerState(TimerPrimaryKey timerId)
void
removeTimer(TimerPrimaryKey timerId)
Remove a timer from the cache.void
validate()
-
-
-
Method Detail
-
addTimer
public void addTimer(TimerPrimaryKey timerId, RuntimeTimerState timerState)
-
removeTimer
public void removeTimer(TimerPrimaryKey timerId)
Remove a timer from the cache. This should be coded defensively since it's possible it will be called multiple times for the same timer.
-
getTimerState
public RuntimeTimerState getTimerState(TimerPrimaryKey timerId)
-
getNonPersistentTimerState
public RuntimeTimerState getNonPersistentTimerState(TimerPrimaryKey timerId)
-
entityBeanHasTimers
public boolean entityBeanHasTimers(long containerId, Object pkey)
-
containerHasTimers
public boolean containerHasTimers(long containerId)
-
validate
public void validate()
-
getNonPersistentTimerIdsForContainer
public Set<TimerPrimaryKey> getNonPersistentTimerIdsForContainer(long containerId_)
-
getNonPersistentActiveTimerIdsForContainer
public Set<TimerPrimaryKey> getNonPersistentActiveTimerIdsForContainer(long containerId_)
-
getNonPersistentActiveTimerIdsByThisServer
public Set<TimerPrimaryKey> getNonPersistentActiveTimerIdsByThisServer()
-
-