Package io.namastack.outbox.retry
Class FixedDelayRetryPolicy
-
- All Implemented Interfaces:
-
io.namastack.outbox.retry.OutboxRetryPolicy
public final class FixedDelayRetryPolicy implements OutboxRetryPolicy
Retry policy that uses a fixed delay between retry attempts.
This policy always waits the same amount of time between retries, regardless of the retry count or exception type.
- Since:
0.1.0
Roland Beisel
-
-
Constructor Summary
Constructors Constructor Description FixedDelayRetryPolicy(Duration delay)
-
Method Summary
-
-
Constructor Detail
-
FixedDelayRetryPolicy
FixedDelayRetryPolicy(Duration delay)
- Parameters:
delay- Fixed delay duration between retries
-
-
Method Detail
-
shouldRetry
Boolean shouldRetry(Throwable exception)
Always returns true, indicating that retries should be attempted.
- Parameters:
exception- The exception that occurred- Returns:
Always true
-
-
-
-