Package com.sun.ejb.containers
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 Summary
ConstructorsConstructorDescriptionConstruct EJBTimerSchedule instance with all defaults.EJBTimerSchedule(com.sun.enterprise.deployment.ScheduledTimerDescriptor sd, String methodName, int paramCount) Construct EJBTimerSchedule instance from a given Schedule annotation.EJBTimerSchedule(jakarta.ejb.ScheduleExpression se) Construct EJBTimerSchedule instance from a given ScheduleExpression.Construct EJBTimerSchedule instance with all defaults. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintjakarta.ejb.ScheduleExpressioninthashCode()booleanprotected booleanisExpectedElementCount(String[] el) static booleanisValid(com.sun.enterprise.deployment.ScheduledTimerDescriptor s) Returns true if this Schedule can calculate its next timeout without errors.setAutomatic(boolean b) Methods inherited from class org.glassfish.common.util.timer.TimerSchedule
configure, dayOfMonth, dayOfWeek, end, getDayOfMonth, getDayOfWeek, getEnd, getHour, getMinute, getMonth, getNextTimeout, getNextTimeout, getSecond, getStart, getTimeZone, getTimeZoneID, getYear, hour, isValid, minute, month, second, start, timezone, year
-
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(com.sun.enterprise.deployment.ScheduledTimerDescriptor sd, String methodName, int paramCount) Construct EJBTimerSchedule instance from a given Schedule annotation. -
EJBTimerSchedule
Construct EJBTimerSchedule instance with all defaults. The subclass will call back for additional parsing.
-
-
Method Details
-
setAutomatic
-
isAutomatic
public boolean isAutomatic() -
getTimerMethodName
-
getMethodParamCount
public int getMethodParamCount() -
getScheduleAsString
- Overrides:
getScheduleAsStringin classorg.glassfish.common.util.timer.TimerSchedule
-
getScheduleExpression
public jakarta.ejb.ScheduleExpression getScheduleExpression() -
hashCode
public int hashCode()- Overrides:
hashCodein classorg.glassfish.common.util.timer.TimerSchedule
-
equals
- Overrides:
equalsin classorg.glassfish.common.util.timer.TimerSchedule
-
isValid
public static boolean isValid(com.sun.enterprise.deployment.ScheduledTimerDescriptor s) Returns true if this Schedule can calculate its next timeout without errors. -
isExpectedElementCount
- Overrides:
isExpectedElementCountin classorg.glassfish.common.util.timer.TimerSchedule
-