Class IntervalIntervalGenerator

java.lang.Object
org.voltdb.task.IntervalIntervalGenerator
All Implemented Interfaces:
Initializable, IntervalGenerator

public final class IntervalIntervalGenerator extends Object
A IntervalGenerator which tries to execute actions with a fixed amount of time between action start times
  • Constructor Details

    • IntervalIntervalGenerator

      public IntervalIntervalGenerator()
  • Method Details

    • initialize

      public void initialize(TaskHelper helper, int interval, String timeUnit)
    • getFirstInterval

      public Interval getFirstInterval()
      Description copied from interface: IntervalGenerator
      This method is invoked only once to obtain the first interval. The first action will be performed after this time interval has elapsed. After the action has been performed callback will be invoked with the result of the action. The return of the callback will be used as the next interval.

      If this method throws an exception or returns null the task instance will halted and put into an error state.

      Returns:
      Interval with the time interval until the next action should be performed and callback to invoke
    • validateParameters

      public static String validateParameters(TaskHelper arg0, int arg1, String arg2)