Interface RequestInterval
- All Known Implementing Classes:
ExponentialBackoff
public interface RequestInterval
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestIntervalconstant(int intervalMillis) static ExponentialBackoffintgetInterval(int attempt)
-
Method Details
-
getInterval
int getInterval(int attempt) - Parameters:
attempt- attempt number, starting from 1- Returns:
- interval in milliseconds
-
constant
-
exponential
-