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 TimerSchedule
A 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 boolean
equals(Object o)
int
getMethodParamCount()
String
getScheduleAsString()
jakarta.ejb.ScheduleExpression
getScheduleExpression()
String
getTimerMethodName()
int
hashCode()
boolean
isAutomatic()
protected boolean
isExpectedElementCount(String[] el)
Validate number of elements in the input stringstatic boolean
isValid(ScheduledTimerDescriptor s)
Returns true if this Schedule can calculate its next timeout without errors.EJBTimerSchedule
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 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:
getScheduleAsString
in classTimerSchedule
-
getScheduleExpression
public jakarta.ejb.ScheduleExpression getScheduleExpression()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTimerSchedule
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classTimerSchedule
-
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)
Description copied from class:TimerSchedule
Validate number of elements in the input string- Overrides:
isExpectedElementCount
in classTimerSchedule
-
-