Class DeadLetteringEventHandlerInvoker

java.lang.Object
org.axonframework.eventhandling.SimpleEventHandlerInvoker
org.axonframework.eventhandling.deadletter.DeadLetteringEventHandlerInvoker
All Implemented Interfaces:
EventHandlerInvoker, SequencedDeadLetterProcessor<EventMessage<?>>, MessageHandlerInterceptorSupport<EventMessage<?>>

public class DeadLetteringEventHandlerInvoker extends SimpleEventHandlerInvoker implements SequencedDeadLetterProcessor<EventMessage<?>>, MessageHandlerInterceptorSupport<EventMessage<?>>
Implementation of an EventHandlerInvoker utilizing a SequencedDeadLetterQueue to enqueue events for which handling failed.

Will use an EnqueuePolicy to deduce whether failed event handling should result in an enqueue operation. Subsequent events belonging to an already contained "sequence identifier", according to the SequencingPolicy, are also enqueued. This ensures event ordering is maintained in face of failures.

This dead lettering invoker provides several operations to process dead letters it has enqueued. It will ensure the same set of Event Handling Components is invoked as with regular event handling when processing a dead letter. These methods will try to process an entire sequence of dead letters. Furthermore, these are exposed through the SequencedDeadLetterProcessor contract.

Since:
4.6.0
Author:
Steven van Beelen