public class IncrementValue extends Object implements ScheduleValue
ScheduleExpression
which is expressed as an increment type. An
IncrementValue
comprises of a start value and a 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.
ScheduleExpressionType.INCREMENT
Modifier and Type | Field and Description |
---|---|
static String |
INCREMENT_SEPARATOR
The separator which is used for parsing a
String which
represents a IncrementValue |
Constructor and Description |
---|
IncrementValue(String value)
Creates a
IncrementValue by parsing the passed value . |
Modifier and Type | Method and Description |
---|---|
String |
getInterval()
Returns the interval of this
IncrementValue |
String |
getStart()
Returns the start of this
IncrementValue |
public static final String INCREMENT_SEPARATOR
String
which
represents a IncrementValue
public IncrementValue(String value)
IncrementValue
by parsing the passed value
.
Upon successfully parsing the passed value
, this constructor
sets the start value and the interval value of this IncrementValue
value
- The value to be parsedIllegalArgumentException
- If the passed value
cannot be
represented as an IncrementValue
public String getStart()
IncrementValue
public String getInterval()
IncrementValue
Copyright © 2013 JBoss by Red Hat. All rights reserved.