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.TimerScheduleA runtime representation of the user-defined calendar-based timeout expression for an enterprise bean timer.- Author:
- mvatkina
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EJBTimerSchedule()Construct EJBTimerSchedule instance with all defaults.EJBTimerSchedule(jakarta.ejb.ScheduleExpression se)Construct EJBTimerSchedule instance from a given ScheduleExpression.EJBTimerSchedule(String s)Construct EJBTimerSchedule instance with all defaults.EJBTimerSchedule(ScheduledTimerDescriptor sd, String methodName, int paramCount)Construct EJBTimerSchedule instance from a given Schedule annotation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetMethodParamCount()StringgetScheduleAsString()jakarta.ejb.ScheduleExpressiongetScheduleExpression()StringgetTimerMethodName()inthashCode()booleanisAutomatic()protected booleanisExpectedElementCount(String[] el)static booleanisValid(ScheduledTimerDescriptor s)Returns true if this Schedule can calculate its next timeout without errors.EJBTimerSchedulesetAutomatic(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 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
-
setAutomatic
public EJBTimerSchedule setAutomatic(boolean b)
-
isAutomatic
public boolean isAutomatic()
-
getTimerMethodName
public String getTimerMethodName()
-
getMethodParamCount
public int getMethodParamCount()
-
getScheduleAsString
public String 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
public boolean equals(Object o)
- Overrides:
equalsin classorg.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:
isExpectedElementCountin classorg.glassfish.common.util.timer.TimerSchedule
-
-