Class OutboxRetryPolicy
java.lang.Object
org.chenile.orchestrator.process.outbox.OutboxRetryPolicy
Exponential backoff with a maximum interval and a maximum attempt count. On exhaustion the
command becomes DEAD (surfaced for alerting / compensation) rather than looping forever.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoublelongintlong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbackoffMillis(int attempt) Delay before the given (1-based) attempt may run again.static OutboxRetryPolicydefaults()booleanisExhausted(int attempt)
-
Field Details
-
initialIntervalMillis
public long initialIntervalMillis -
backoffCoefficient
public double backoffCoefficient -
maxIntervalMillis
public long maxIntervalMillis -
maxAttempts
public int maxAttempts
-
-
Constructor Details
-
OutboxRetryPolicy
public OutboxRetryPolicy()
-
-
Method Details
-
defaults
-
backoffMillis
public long backoffMillis(int attempt) Delay before the given (1-based) attempt may run again. -
isExhausted
public boolean isExhausted(int attempt)
-
CHENILE