Interface WaitStrategy
-
- All Known Implementing Classes:
ExponentialWaitStrategy
- 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 interface WaitStrategy
Operations that are polling for a result to arrive require a waiting time between consecutive polls. AWaitStrategydetermines this waiting time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longsleepTime(long attempt)Returns the time to wait until the next attempt.
-