public class TimerSchedule extends Object implements Serializable
Constructor and Description |
---|
TimerSchedule()
Construct TimerSchedule instance with all defaults.
|
TimerSchedule(String s)
Construct TimerSchedule instance from a given String.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Populate all internale structures to be used for the next timeout
calculations
|
TimerSchedule |
dayOfMonth(String d) |
TimerSchedule |
dayOfWeek(String d) |
TimerSchedule |
end(Date e) |
boolean |
equals(Object o) |
String |
getDayOfMonth() |
String |
getDayOfWeek() |
Date |
getEnd() |
String |
getHour() |
String |
getMinute() |
String |
getMonth() |
Calendar |
getNextTimeout()
Returns the Date of the next possible timeout.
|
Calendar |
getNextTimeout(Date date)
Returns the Date of the next possible timeout after the specific date.
|
String |
getScheduleAsString() |
String |
getSecond() |
Date |
getStart() |
TimeZone |
getTimeZone() |
String |
getTimeZoneID() |
String |
getYear() |
int |
hashCode() |
TimerSchedule |
hour(String h) |
protected boolean |
isExpectedElementCount(String[] el)
Validate number of elements in the input string
|
boolean |
isValid(Calendar date)
Returns true if this date can be used for the next timeout of
the schedule represented by this instance.
|
TimerSchedule |
minute(String m) |
TimerSchedule |
month(String m) |
TimerSchedule |
second(String s) |
TimerSchedule |
start(Date s) |
TimerSchedule |
timezone(String tz) |
TimerSchedule |
year(String y) |
public TimerSchedule()
public TimerSchedule(String s)
public TimerSchedule second(String s)
public String getSecond()
public TimerSchedule minute(String m)
public String getMinute()
public TimerSchedule hour(String h)
public String getHour()
public TimerSchedule dayOfMonth(String d)
public String getDayOfMonth()
public TimerSchedule month(String m)
public String getMonth()
public TimerSchedule dayOfWeek(String d)
public String getDayOfWeek()
public TimerSchedule year(String y)
public String getYear()
public TimerSchedule timezone(String tz)
public String getTimeZoneID()
public TimeZone getTimeZone()
public TimerSchedule start(Date s)
public Date getStart()
public TimerSchedule end(Date e)
public Date getEnd()
public String getScheduleAsString()
public boolean isValid(Calendar date)
public Calendar getNextTimeout()
public Calendar getNextTimeout(Date date)
protected boolean isExpectedElementCount(String[] el)
protected void configure()
Copyright © 2021. All rights reserved.