Class EJBTimerSchedule

java.lang.Object
org.glassfish.common.util.timer.TimerSchedule
com.sun.ejb.containers.EJBTimerSchedule
All Implemented Interfaces:
Serializable

public class EJBTimerSchedule extends org.glassfish.common.util.timer.TimerSchedule
A runtime representation of the user-defined calendar-based timeout expression for an enterprise bean timer.
Author:
mvatkina
See Also:
  • Constructor Details

    • EJBTimerSchedule

      public EJBTimerSchedule()
      Construct EJBTimerSchedule instance with all defaults.
    • EJBTimerSchedule

      public EJBTimerSchedule(jakarta.ejb.ScheduleExpression se)
      Construct EJBTimerSchedule instance from a given ScheduleExpression. Need to copy all values because ScheduleExpression is mutable and can be modified by the user.
    • EJBTimerSchedule

      public EJBTimerSchedule(ScheduledTimerDescriptor sd, String methodName, int paramCount)
      Construct EJBTimerSchedule instance from a given Schedule annotation.
    • EJBTimerSchedule

      public EJBTimerSchedule(String s)
      Construct EJBTimerSchedule instance with all defaults. The subclass will call back for additional parsing.
  • Method Details

    • setAutomatic

      public EJBTimerSchedule setAutomatic(boolean b)
    • isAutomatic

      public boolean isAutomatic()
    • getTimerMethodName

      public String getTimerMethodName()
    • getMethodParamCount

      public int getMethodParamCount()
    • getScheduleAsString

      public String getScheduleAsString()
      Overrides:
      getScheduleAsString in class org.glassfish.common.util.timer.TimerSchedule
    • getScheduleExpression

      public jakarta.ejb.ScheduleExpression getScheduleExpression()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.glassfish.common.util.timer.TimerSchedule
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.glassfish.common.util.timer.TimerSchedule
    • isValid

      public static boolean isValid(ScheduledTimerDescriptor s)
      Returns true if this Schedule can calculate its next timeout without errors.
    • isExpectedElementCount

      protected boolean isExpectedElementCount(String[] el)
      Overrides:
      isExpectedElementCount in class org.glassfish.common.util.timer.TimerSchedule