Package org.voltdb.task
Interface IntervalGenerator
- All Superinterfaces:
- Initializable
Interface which calculates the time interval which should elapse until the next action should be performed
- 
Method SummaryModifier and TypeMethodDescriptionThis method is invoked only once to obtain the first interval.Methods inherited from interface org.voltdb.task.InitializablegetDependencies
- 
Method Details- 
getFirstIntervalInterval getFirstInterval()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 performedcallbackwill be invoked with theresultof the action. The return of the callback will be used as the next interval.If this method throws an exception or returns nullthe task instance will halted and put into an error state.- Returns:
- Intervalwith the time interval until the next action should be performed and callback to invoke
 
 
-