Package com.sun.ejb.containers
Class RuntimeTimerState
- java.lang.Object
-
- com.sun.ejb.containers.RuntimeTimerState
-
public class RuntimeTimerState extends Object
RuntimeTimerState holds all runtime state of an EJB timer, including what fine-grained state it's in, stats about the number of expirations and failed deliveries that have occurred, and any existing JDK timer task that is currently scheduled for this timer. It also caches read-only state of a timer to improve performance.- Author:
- Kenneth Saks
-
-
Constructor Summary
Constructors Constructor Description RuntimeTimerState(TimerPrimaryKey timerId, Date initialExpiration, long intervalDuration, BaseContainer container, Object timedObjectPkey, EJBTimerSchedule schedule, Serializable info, boolean persistent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
int
getNumFailedDeliveries()
Number of failed deliveries since timer last transitioned to the SCHEDULED state.TimerPrimaryKey
getTimerId()
int
hashCode()
boolean
isExpired()
boolean
isPeriodic()
boolean
isPersistent()
String
toString()
-
-
-
Constructor Detail
-
RuntimeTimerState
public RuntimeTimerState(TimerPrimaryKey timerId, Date initialExpiration, long intervalDuration, BaseContainer container, Object timedObjectPkey, EJBTimerSchedule schedule, Serializable info, boolean persistent)
-
-
Method Detail
-
getTimerId
public TimerPrimaryKey getTimerId()
-
getNumFailedDeliveries
public int getNumFailedDeliveries()
Number of failed deliveries since timer last transitioned to the SCHEDULED state.
-
isExpired
public boolean isExpired()
-
isPeriodic
public boolean isPeriodic()
- Returns:
- true if interval timer and false otherwise
-
isPersistent
public boolean isPersistent()
- Returns:
- true if this is a persistent timer
-
-