Interface ScheduledPollingStrategy.RecurringPolicy

All Known Implementing Classes:
ScheduledPollingStrategy.RegularRecurringPolicy
Enclosing class:
ScheduledPollingStrategy
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ScheduledPollingStrategy.RecurringPolicy
An SPI that allows users to define their own policy how to change the interval between scheduled ticking.

The only needed implementation is of interval(). Methods shorten() and lengthen() might be used to shorten or to lengthen an interval. Both of them are called from scheduled polling strategy depending on the result of the polling event (PollingStrategy.Polled.poll(java.time.Instant).