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 Details

  • Method Details

    • 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object