@Beta public abstract static class AbstractScheduledService.CustomScheduler extends AbstractScheduledService.Scheduler
AbstractScheduledService.Schedulerthat provides a convenient way for the
AbstractScheduledServiceto use a dynamically changing schedule. After every execution of the task, assuming it hasn't been cancelled, the
getNextSchedule()method will be called.
|Modifier and Type||Class and Description|
A value object that represents an absolute delay until a task should be invoked.
|Constructor and Description|
|Modifier and Type||Method and Description|
Calculates the time at which to next invoke the task.
newFixedDelaySchedule, newFixedDelaySchedule, newFixedRateSchedule, newFixedRateSchedule
protected abstract AbstractScheduledService.CustomScheduler.Schedule getNextSchedule() throws Exception
This is guaranteed to be called immediately after the task has completed an iteration and
on the same thread as the previous execution of
Copyright © 2010–2019. All rights reserved.