Class CompositeActionScheduler

java.lang.Object
org.voltdb.task.CompositeActionScheduler
All Implemented Interfaces:
ActionScheduler, Initializable

public final class CompositeActionScheduler extends Object implements ActionScheduler
Simple ActionScheduler implementation which takes a ActionGenerator and IntervalGenerator and combines the results of those two instances to make a ScheduledAction
  • Constructor Details

  • Method Details

    • getFirstScheduledAction

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

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

      Specified by:
      getFirstScheduledAction in interface ActionScheduler
      Returns:
      ScheduledAction with the action and interval after which the action is performed
    • restrictProcedureByScope

      public boolean restrictProcedureByScope()
    • isReadOnly

      public boolean isReadOnly()