Class RetryConfiguration
java.lang.Object
io.fluxzero.common.RetryConfiguration
Configuration for retry behavior when executing a task using
TimingUtils.retryOnFailure(Runnable, Duration).
This class encapsulates options such as retry delay, maximum number of retries, error filtering, and logging callbacks to be invoked on success or failure.
Usage Example
RetryConfiguration config = RetryConfiguration.builder()
.delay(Duration.ofSeconds(2))
.maxRetries(5)
.errorTest(e -> e instanceof IOException)
.build();
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RetryConfiguration
public RetryConfiguration()
-