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 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 Details

  • Constructor Details

    • IncrementValue

      public IncrementValue(String value)
      Creates a 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

      Parameters:
      value - The value to be parsed
      Throws:
      IllegalArgumentException - If the passed value cannot be represented as an IncrementValue
  • Method Details

    • getStart

      public int getStart()
      Returns the start of this IncrementValue
      Returns:
      int start value
    • getInterval

      public int getInterval()
      Returns the interval of this IncrementValue
      Returns:
      int interval value