Class 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
    • Method Detail

      • 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()
        Overrides:
        hashCode in class Object