Class RetryExponential
- java.lang.Object
-
- com.microsoft.azure.eventhubs.RetryPolicy
-
- com.microsoft.azure.eventhubs.impl.RetryExponential
-
public final class RetryExponential extends RetryPolicy
RetryPolicy implementation where the delay between retries will grow in an exponential manner. RetryPolicy can be set on the client operations usingConnectionStringBuilder. RetryIntervals will be computed using a retryFactor which is a function of deltaBackOff (MaximumBackoff - MinimumBackoff) and MaximumRetryCount
-
-
Constructor Summary
Constructors Constructor Description RetryExponential(Duration minimumBackoff, Duration maximumBackoff, int maximumRetryCount, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DurationonGetNextRetryInterval(String clientId, Exception lastException, Duration remainingTime, int baseWaitTimeSecs)-
Methods inherited from class com.microsoft.azure.eventhubs.RetryPolicy
getDefault, getNextRetryInterval, getNoRetry, getRetryCount, incrementRetryCount, isRetryableException, resetRetryCount, toString
-
-
-
-
Method Detail
-
onGetNextRetryInterval
protected Duration onGetNextRetryInterval(String clientId, Exception lastException, Duration remainingTime, int baseWaitTimeSecs)
- Specified by:
onGetNextRetryIntervalin classRetryPolicy
-
-