Package org.voltdb.task
Interface ActionGenerator
- All Superinterfaces:
Initializable
- All Known Implementing Classes:
SingleProcGenerator
public interface ActionGenerator
Interface which generates actions to be be performed as part of a task on a schedule
-
Method Summary
Modifier and TypeMethodDescriptionThis method is invoked only once to obtain the first action.default booleandefault booleanMethods inherited from interface org.voltdb.task.Initializable
getDependencies
-
Method Details
-
getFirstAction
Action getFirstAction()This method is invoked only once to obtain the first action. The first action will be performed after a time interval has elapsed. After the action has been performedcallbackwill be invoked with theresultof this action. The return of the callback will be used as the next action.If this method throws an exception or returns
nullthe task instance will halted and put into an error state.- Returns:
Actionto perform
-
restrictProcedureByScope
default boolean restrictProcedureByScope() -
isReadOnly
default boolean isReadOnly()
-