Interface SequencedDeadLetterQueueFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
SequencedDeadLetterQueue for a given processing group.
Implementations provide the backing store for dead-lettered events. The factory is invoked once per event handling component when DLQ support is enabled, allowing each component within a processor to have its own queue.
Example:
SequencedDeadLetterQueueFactory myFactory = (processingGroup, configuration) ->
new MySequencedDeadLetterQueue(processingGroup, storage);
- Since:
- 5.1.0
- Author:
- Mateusz Nowak
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String processingGroup, Configuration configuration) Creates aSequencedDeadLetterQueuefor the givenprocessingGroup.
-
Method Details
-
create
Creates aSequencedDeadLetterQueuefor the givenprocessingGroup.The
processingGroupis a component-scoped identifier that uniquely identifies the dead letter queue within its event processor. A single processor may contain multiple event handling components, each with its own DLQ. The name follows the pattern"DeadLetterQueue[processorName][componentName]", for example"DeadLetterQueue[myProcessor][myComponent]"for a component named"myComponent"within a processor named"myProcessor".Implementations should use this value as-is when scoping dead letters in their backing store (e.g., as the
processingGroupcolumn in a database table).- Parameters:
processingGroup- The component-scoped identifier used to scope dead letters to a single event handling component's queue, e.g."DeadLetterQueue[myProcessor][myComponent]".configuration- TheConfigurationproviding access to framework components needed to build the queue (e.g., entity managers, converters). May be ignored when all dependencies are already wired externally (e.g., in a Spring context via bean injection).- Returns:
- A
SequencedDeadLetterQueuescoped to the given processing group.
-