Package io.outbox.dispatch
Interface RetryPolicy
- All Known Implementing Classes:
ExponentialBackoffRetryPolicy
public interface RetryPolicy
Strategy for computing the delay before retrying a failed event dispatch.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlongcomputeDelayMs(int attempts) Computes the delay in milliseconds before the next retry attempt.
-
Method Details
-
computeDelayMs
long computeDelayMs(int attempts) Computes the delay in milliseconds before the next retry attempt.- Parameters:
attempts- the number of attempts so far (1-based)- Returns:
- delay in milliseconds (non-negative)
-