Interface RetryPolicy.Exponential
- All Superinterfaces:
RetryPolicy
- Enclosing interface:
- RetryPolicy
The operation will be retried at exponential intervals.
The delay will be incremented by multiplier after each iteration
(multiplier = 0.5 means 50% increment).
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A builder to create aRetryPolicy.Exponential
Nested classes/interfaces inherited from interface ch.nevis.mobile.sdk.api.operation.RetryPolicy
RetryPolicy.Constant, RetryPolicy.Exponential, RetryPolicy.NoRetry
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns an object that can be used to build aRetryPolicy
.long
The delay to be waited before executing the first retry.long
The maximum time interval of the delay in seconds.int
The maximum number of retriesdouble
The multiplier of the delay interval.
-
Method Details
-
maxRetries
int maxRetries()The maximum number of retries- Returns:
- the maximum number of retries
-
initialDelayInSeconds
long initialDelayInSeconds()The delay to be waited before executing the first retry.- Returns:
- the initial delay in seconds
-
multiplier
double multiplier()The multiplier of the delay interval.- Returns:
- the multiplier of the delay interval
-
maximumDelayInSeconds
long maximumDelayInSeconds()The maximum time interval of the delay in seconds.- Returns:
- the maximum time interval of the delay in seconds
-
builder
Returns an object that can be used to build aRetryPolicy
.- Returns:
- a
RetryPolicy
builder
-