public interface PollInterval
Modifier and Type | Method and Description |
---|---|
Duration |
next(int pollCount,
Duration previousDuration)
|
Duration next(int pollCount, Duration previousDuration)
Duration
) based on the previous Duration
and/or the poll count
.
The first time the poll interval is called the poll delay is used as previousDuration
. By default the poll delay is
equal to Duration.ZERO
.pollCount
- The number of times the condition has been polled (evaluated). Always a positive integer.previousDuration
- The duration of the previously returned poll interval.Copyright © 2010–2016. All rights reserved.