Class IncrementValue
java.lang.Object
org.jboss.as.ejb3.timerservice.schedule.value.IncrementValue
- All Implemented Interfaces:
ScheduleValue
Represents a value for a
ScheduleExpression which is expressed as an increment type. An
IncrementValue comprises of a start value and an interval, separated by a "/"
An IncrementValue is 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe separator which is used for parsing aStringwhich represents aIncrementValue -
Constructor Summary
ConstructorsConstructorDescriptionIncrementValue(String value) Creates aIncrementValueby parsing the passedvalue. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the interval of thisIncrementValueintgetStart()Returns the start of thisIncrementValue
-
Field Details
-
INCREMENT_SEPARATOR
The separator which is used for parsing aStringwhich represents aIncrementValue- See Also:
-
-
Constructor Details
-
IncrementValue
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 Details
-
getStart
public int getStart()Returns the start of thisIncrementValue- Returns:
- int start value
-
getInterval
public int getInterval()Returns the interval of thisIncrementValue- Returns:
- int interval value
-