public static class RetryPolicy.ExponentialBuilder extends Object
Modifier and Type | Method and Description |
---|---|
RetryPolicy.Exponential |
build() |
RetryPolicy.ExponentialBuilder |
factor(double factor)
Factor to use when increasing the retry delay.
|
RetryPolicy.ExponentialBuilder |
max(long duration,
TimeUnit unit)
Max possible delay.
|
public RetryPolicy.ExponentialBuilder max(long duration, TimeUnit unit)
duration
- duration of max possible delayunit
- unit of durationpublic RetryPolicy.ExponentialBuilder factor(double factor)
factor
- number that must be greater than 1public RetryPolicy.Exponential build()
Copyright © 2017. All rights reserved.