public static final class RetryStrategies.Builder extends Object
Modifier and Type | Method and Description |
---|---|
RetryStrategy |
build()
Constructs the actual strategy based on the properties set previously.
|
RetryStrategies.Builder |
intervalFunction(IntervalFunction f)
Set a function to modify the waiting interval after a failure.
|
RetryStrategies.Builder |
maxAttempts(int maxRetryAttempts)
Sets the maximum number of retry attempts.
|
public RetryStrategies.Builder maxAttempts(int maxRetryAttempts)
public RetryStrategies.Builder intervalFunction(IntervalFunction f)
f
- Function to modify the interval after a failurepublic RetryStrategy build()
Copyright © 2023 Hazelcast, Inc.. All rights reserved.