Class EJBTimerSchedule

  • All Implemented Interfaces:
    Serializable

    public class EJBTimerSchedule
    extends TimerSchedule
    A runtime representation of the user-defined calendar-based timeout expression for an enterprise bean timer.
    Author:
    mvatkina
    See Also:
    Serialized Form
    • Constructor Detail

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

      • isAutomatic

        public boolean isAutomatic()
      • getTimerMethodName

        public String getTimerMethodName()
      • getMethodParamCount

        public int getMethodParamCount()
      • getScheduleExpression

        public jakarta.ejb.ScheduleExpression getScheduleExpression()
      • isValid

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