Class IncrementValue
- java.lang.Object
-
- org.jboss.as.ejb3.timerservice.schedule.value.IncrementValue
-
- All Implemented Interfaces:
ScheduleValue
public class IncrementValue extends Object implements ScheduleValue
Represents a value for aScheduleExpressionwhich is expressed as an increment type. AnIncrementValuecomprises of a start value and an interval, separated by a "/"An
IncrementValueis specified in the form of x/y to mean "Every N { seconds | minutes | hours } within the { minute | hour | day }" (respectively). For expression x/y, the attribute is constrained to every yth value within the set of allowable values beginning at time x. The x value is inclusive. The wildcard character (*) can be used in the x position, and is equivalent to 0.- Version:
- $Revision: $
- Author:
- Jaikiran Pai
- See Also:
ScheduleExpressionType.INCREMENT
-
-
Field Summary
Fields Modifier and Type Field Description static StringINCREMENT_SEPARATORThe separator which is used for parsing aStringwhich represents aIncrementValue
-
Constructor Summary
Constructors Constructor Description IncrementValue(String value)Creates aIncrementValueby parsing the passedvalue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInterval()Returns the interval of thisIncrementValueStringgetStart()Returns the start of thisIncrementValue
-
-
-
Field Detail
-
INCREMENT_SEPARATOR
public static final String INCREMENT_SEPARATOR
The separator which is used for parsing aStringwhich represents aIncrementValue- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IncrementValue
public IncrementValue(String value)
Creates aIncrementValueby parsing the passedvalue.Upon successfully parsing the passed
value, this constructor sets the start value and the interval value of thisIncrementValue- Parameters:
value- The value to be parsed- Throws:
IllegalArgumentException- If the passedvaluecannot be represented as anIncrementValue
-
-
Method Detail
-
getStart
public String getStart()
Returns the start of thisIncrementValue- Returns:
-
getInterval
public String getInterval()
Returns the interval of thisIncrementValue- Returns:
-
-