Package com.cloudera.cdp.http
Interface DelayPolicy
-
- All Known Implementing Classes:
ExponentialBackoffDelayPolicy
public interface DelayPolicy
An interface defining the delay policy between retries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Duration
delay(int attempts)
Returns the delay needed before attempting the next retry.
-
-
-
Method Detail
-
delay
Duration delay(int attempts)
Returns the delay needed before attempting the next retry.- Parameters:
attempts
- The number of attempts made to make the call- Returns:
- The duration to wait
-
-