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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder to create aRetryPolicy.ExponentialNested 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.longThe delay to be waited before executing the first retry.longThe maximum time interval of the delay in seconds.intThe maximum number of retriesdoubleThe 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
RetryPolicybuilder
-