public class ScheduleExpression extends Object implements Serializable
Each expression attribute has two overloaded setter methods, one that takes a String and one that takes an int. The int version is merely a convenience method for setting the attribute in the common case that the value is a simple integer.
E.g.
scheduleExpression.second(10)
is semantically equivalent to
scheduleExpression.second("10")
None of the ScheduleExpression methods are required to be called. The defaults are :
{ second , minute , hour } : "0"
{ dayOfMonth, month, dayOfWeek, year } : "*"
timezone : default JVM time zone
startDate : no start date
endDate : no end date
Constructor and Description |
---|
ScheduleExpression() |
Modifier and Type | Method and Description |
---|---|
ScheduleExpression |
dayOfMonth(int d) |
ScheduleExpression |
dayOfMonth(String d) |
ScheduleExpression |
dayOfWeek(int d) |
ScheduleExpression |
dayOfWeek(String d) |
ScheduleExpression |
end(Date e) |
String |
getDayOfMonth() |
String |
getDayOfWeek() |
Date |
getEnd() |
String |
getHour() |
String |
getMinute() |
String |
getMonth() |
String |
getSecond() |
Date |
getStart() |
String |
getTimezone() |
String |
getYear() |
ScheduleExpression |
hour(int h) |
ScheduleExpression |
hour(String h) |
ScheduleExpression |
minute(int m) |
ScheduleExpression |
minute(String m) |
ScheduleExpression |
month(int m) |
ScheduleExpression |
month(String m) |
ScheduleExpression |
second(int s) |
ScheduleExpression |
second(String s) |
ScheduleExpression |
start(Date s) |
ScheduleExpression |
timezone(String s) |
String |
toString() |
ScheduleExpression |
year(int y) |
ScheduleExpression |
year(String y) |
public ScheduleExpression dayOfMonth(int d)
public ScheduleExpression dayOfMonth(String d)
public ScheduleExpression dayOfWeek(int d)
public ScheduleExpression dayOfWeek(String d)
public ScheduleExpression end(Date e)
public String getDayOfMonth()
public String getDayOfWeek()
public Date getEnd()
public String getHour()
public String getMinute()
public String getMonth()
public String getSecond()
public Date getStart()
public String getTimezone()
public String getYear()
public ScheduleExpression hour(int h)
public ScheduleExpression hour(String h)
public ScheduleExpression minute(int m)
public ScheduleExpression minute(String m)
public ScheduleExpression month(int m)
public ScheduleExpression month(String m)
public ScheduleExpression second(int s)
public ScheduleExpression second(String s)
public ScheduleExpression start(Date s)
public ScheduleExpression timezone(String s)
public ScheduleExpression year(int y)
public ScheduleExpression year(String y)
Copyright © 2018 JBoss by Red Hat. All rights reserved.