Execute batches using batchRunner.
Execute batches using batchRunner. If batchRunner runs false, terminate the execution.
Returns the start time in milliseconds for the next batch interval, given the current time.
Returns the start time in milliseconds for the next batch interval, given the current time.
Note that a batch interval is inclusive with respect to its start time, and thus calling
nextBatchTime with the result of a previous call should return the next interval. (i.e. given
an interval of 100 ms, nextBatchTime(nextBatchTime(0)) = 200 rather than 0).
Called when a batch falls behind.
Called when a batch falls behind. Expose for test only
A trigger executor that runs a batch every
intervalMsmilliseconds.