Package com.sinch.sdk.models
Class RetryConfiguration.Builder
java.lang.Object
com.sinch.sdk.models.RetryConfiguration.Builder
- Enclosing class:
RetryConfiguration
Dedicated Builder
- Since:
- 2.2
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aRetryConfigurationinstance from builder current statesetExponentialBackoff(int exponentialBackoff) Set the growth factor of the exponential backoffsetMaxRetryCount(int maxRetryCount) Set the maximum number of retries performed on top of the initial attemptsetRetryPolicy(RetryPolicy retryPolicy) Set the strategy used to compute the delay before a retry
-
Method Details
-
setRetryPolicy
Set the strategy used to compute the delay before a retry- Parameters:
retryPolicy- Retry policy, ornullto keep the default- Returns:
- Current builder
- Since:
- 2.2
- See Also:
-
setMaxRetryCount
Set the maximum number of retries performed on top of the initial attempt- Parameters:
maxRetryCount- Maximum retry count, zero or greater- Returns:
- Current builder
- Since:
- 2.2
- See Also:
-
setExponentialBackoff
Set the growth factor of the exponential backoff- Parameters:
exponentialBackoff- Growth factor, one or greater- Returns:
- Current builder
- Since:
- 2.2
- See Also:
-
build
Build aRetryConfigurationinstance from builder current state- Returns:
- RetryConfiguration instance built from current builder state
- Since:
- 2.2
-