Class AbstractScheduledService.Scheduler

java.lang.Object
com.google.common.util.concurrent.AbstractScheduledService.Scheduler
Direct Known Subclasses:
AbstractScheduledService.CustomScheduler
Enclosing class:
AbstractScheduledService

public abstract static class AbstractScheduledService.Scheduler extends Object
A scheduler defines the policy for how the AbstractScheduledService should run its task.

Consider using the newFixedDelaySchedule(java.time.Duration, java.time.Duration) and newFixedRateSchedule(java.time.Duration, java.time.Duration) factory methods, these provide AbstractScheduledService.Scheduler instances for the common use case of running the service with a fixed schedule. If more flexibility is needed then consider subclassing AbstractScheduledService.CustomScheduler.

Since:
11.0
Author:
Luke Sandberg