RetryExponential Class
- java.
lang. Object - RetryPolicy
- com.
microsoft. azure. servicebus. primitives. RetryExponential
- com.
public 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 using ConnectionStringBuilder. RetryIntervals will be computed using a retryFactor which is a function of deltaBackOff (MaximumBackoff - MinimumBackoff) and MaximumRetryCount
Constructor Summary
Constructor | Description | |
---|---|---|
RetryExponential(final Duration minimumBackoff, final Duration maximumBackoff, final int maximumRetryCount, final String name) |
Method Summary
Modifier and Type | Method and Description |
---|---|
Duration | onGetNextRetryInterval(final String clientId, final Exception lastException, final Duration remainingTime, final int baseWaitTimeSecs) |
Inherited Members
Constructor Details
RetryExponential
public RetryExponential(final Duration minimumBackoff, final Duration maximumBackoff, final int maximumRetryCount, final String name)
Parameters:
Method Details
onGetNextRetryInterval
protected Duration onGetNextRetryInterval(final String clientId, final Exception lastException, final Duration remainingTime, final int baseWaitTimeSecs)
Parameters:
Applies to
Azure SDK for Java