Package com.sun.ejb.containers
Class RuntimeTimerState
java.lang.Object
com.sun.ejb.containers.RuntimeTimerState
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
ConstructorsConstructorDescriptionRuntimeTimerState(TimerPrimaryKey timerId, Date initialExpiration, long intervalDuration, BaseContainer container, Object timedObjectPkey, EJBTimerSchedule schedule, Serializable info, boolean persistent) -
Method Summary
-
Constructor Details
-
RuntimeTimerState
public RuntimeTimerState(TimerPrimaryKey timerId, Date initialExpiration, long intervalDuration, BaseContainer container, Object timedObjectPkey, EJBTimerSchedule schedule, Serializable info, boolean persistent)
-
-
Method Details
-
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
-
hashCode
public int hashCode() -
equals
-
toString
-