|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.common.util.concurrent.AbstractScheduledService.Scheduler
com.google.common.util.concurrent.AbstractScheduledService.CustomScheduler
@Beta public abstract static class AbstractScheduledService.CustomScheduler
A AbstractScheduledService.Scheduler
that provides a convenient way for the AbstractScheduledService
to
use a dynamically changing schedule. After every execution of the task, assuming it hasn't
been cancelled, the getNextSchedule()
method will be called.
Nested Class Summary | |
---|---|
protected static class |
AbstractScheduledService.CustomScheduler.Schedule
A value object that represents an absolute delay until a task should be invoked. |
Constructor Summary | |
---|---|
AbstractScheduledService.CustomScheduler()
|
Method Summary | |
---|---|
protected abstract AbstractScheduledService.CustomScheduler.Schedule |
getNextSchedule()
Calculates the time at which to next invoke the task. |
Methods inherited from class com.google.common.util.concurrent.AbstractScheduledService.Scheduler |
---|
newFixedDelaySchedule, newFixedRateSchedule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractScheduledService.CustomScheduler()
Method Detail |
---|
protected abstract AbstractScheduledService.CustomScheduler.Schedule getNextSchedule() throws java.lang.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 AbstractScheduledService.runOneIteration()
.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |