Interface PollingStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for computing polling delays between attempts.
-
Method Summary
Modifier and TypeMethodDescriptioncomputeDelay(int attempt) Computes the delay before the next polling attempt.
-
Method Details
-
computeDelay
Computes the delay before the next polling attempt.- Parameters:
attempt- The current attempt number (0-based)- Returns:
- Duration to wait before the next poll
-