|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.ejb.containers.TimerSchedule
public class TimerSchedule
A runtime representation of the user-defined calendar-based timeout expression for an enterprise bean timer.
| Constructor Summary | |
|---|---|
TimerSchedule()
Construct TimerSchedule instance with all defaults. |
|
TimerSchedule(ScheduledTimerDescriptor sd,
java.lang.String methodName,
int paramCount)
Construct TimerSchedule instance from a given Schedule annotation. |
|
TimerSchedule(ScheduleExpression se)
Construct TimerSchedule instance from a given ScheduleExpression. |
|
TimerSchedule(java.lang.String s)
Reconstruct TimerSchedule instance from a given String. |
|
| Method Summary | |
|---|---|
TimerSchedule |
dayOfMonth(java.lang.String d)
|
TimerSchedule |
dayOfWeek(java.lang.String d)
|
TimerSchedule |
end(java.util.Date e)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDayOfMonth()
|
java.lang.String |
getDayOfWeek()
|
java.util.Date |
getEnd()
|
java.lang.String |
getHour()
|
int |
getMethodParamCount()
|
java.lang.String |
getMinute()
|
java.lang.String |
getMonth()
|
java.util.Calendar |
getNextTimeout()
Returns the Date of the next possible timeout. |
java.util.Calendar |
getNextTimeout(java.util.Date date)
Returns the Date of the next possible timeout after the specific date. |
java.lang.String |
getScheduleAsString()
|
ScheduleExpression |
getScheduleExpression()
|
java.lang.String |
getSecond()
|
java.util.Date |
getStart()
|
java.lang.String |
getTimerMethodName()
|
java.util.TimeZone |
getTimeZone()
|
java.lang.String |
getTimeZoneID()
|
java.lang.String |
getYear()
|
int |
hashCode()
|
TimerSchedule |
hour(java.lang.String h)
|
boolean |
isAutomatic()
|
boolean |
isValid(java.util.Calendar date)
Returns true if this date can be used for the next timeout of the schedule represented by this instance. |
static boolean |
isValid(ScheduledTimerDescriptor s)
Returns true if this Schedule can calculate its next timeout without errors. |
TimerSchedule |
minute(java.lang.String m)
|
TimerSchedule |
month(java.lang.String m)
|
TimerSchedule |
second(java.lang.String s)
|
TimerSchedule |
setAutomatic(boolean b)
|
TimerSchedule |
start(java.util.Date s)
|
TimerSchedule |
timezone(java.lang.String tz)
|
TimerSchedule |
year(java.lang.String y)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerSchedule()
public TimerSchedule(ScheduleExpression se)
public TimerSchedule(ScheduledTimerDescriptor sd,
java.lang.String methodName,
int paramCount)
public TimerSchedule(java.lang.String s)
| Method Detail |
|---|
public TimerSchedule second(java.lang.String s)
public java.lang.String getSecond()
public TimerSchedule minute(java.lang.String m)
public java.lang.String getMinute()
public TimerSchedule hour(java.lang.String h)
public java.lang.String getHour()
public TimerSchedule dayOfMonth(java.lang.String d)
public java.lang.String getDayOfMonth()
public TimerSchedule month(java.lang.String m)
public java.lang.String getMonth()
public TimerSchedule dayOfWeek(java.lang.String d)
public java.lang.String getDayOfWeek()
public TimerSchedule year(java.lang.String y)
public java.lang.String getYear()
public TimerSchedule timezone(java.lang.String tz)
public java.lang.String getTimeZoneID()
public java.util.TimeZone getTimeZone()
public TimerSchedule start(java.util.Date s)
public java.util.Date getStart()
public TimerSchedule end(java.util.Date e)
public java.util.Date getEnd()
public TimerSchedule setAutomatic(boolean b)
public boolean isAutomatic()
public java.lang.String getTimerMethodName()
public int getMethodParamCount()
public java.lang.String getScheduleAsString()
public ScheduleExpression getScheduleExpression()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic static boolean isValid(ScheduledTimerDescriptor s)
public boolean isValid(java.util.Calendar date)
public java.util.Calendar getNextTimeout()
public java.util.Calendar getNextTimeout(java.util.Date date)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||