Interface RetryPolicy
- All Superinterfaces:
DescribableComponent
- All Known Implementing Classes:
ExponentialBackOffRetryPolicy,FilteringRetryPolicy,MaxAttemptsPolicy
Describes a policy for retrying failed messages. These could be commands, events, as well as queries where the
dispatching, or -in the case of commands and queries- the handling returned a failure.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe outcome of applying aRetryPolicyto a given message. -
Method Summary
Methods inherited from interface org.axonframework.common.infra.DescribableComponent
describeTo
-
Method Details
-
defineFor
RetryPolicy.Outcome defineFor(@Nonnull Message message, @Nonnull Throwable failure, @Nonnull List<Class<? extends Throwable>[]> previousFailures) Provides the outcome for the policy given the failedmessagethat was dispatched and resulted in givenfailure. ThepreviousFailuresrepresent a summary of previous failures that have occurred in previous attemps to send this message.- Parameters:
message- The message that failedfailure- The exception that occurred while dispatchingpreviousFailures- a summary of all previous failures- Returns:
- the outcome describing the expected rescheduling behavior
-