Package io.smallrye.faulttolerance.api
Interface Guard.Builder.RetryBuilder.ExponentialBackoffBuilder
- Enclosing interface:
Guard.Builder.RetryBuilder
public static interface Guard.Builder.RetryBuilder.ExponentialBackoffBuilder
Configures an exponential backoff for retry.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondone()Returns the original retry builder.factor(int value) Sets the multiplicative factor used to determine delay between retries.maxDelay(long value, ChronoUnit unit) Sets the maximum delay between retries.
-
Method Details
-
factor
Sets the multiplicative factor used to determine delay between retries. Defaults to 2.- Parameters:
value- the multiplicative factor, must be >= 1- Returns:
- this exponential backoff builder
- See Also:
-
maxDelay
Sets the maximum delay between retries. Defaults to 1 minute.- Parameters:
value- the maximum delay, must be >= 0unit- the maximum delay unit, must not benull- Returns:
- this exponential backoff builder
- See Also:
-
done
Guard.Builder.RetryBuilder done()Returns the original retry builder.- Returns:
- the original retry builder
-
with
-