Package io.axoniq.framework.springboot
Class DeadLetterQueueProcessorProperties
java.lang.Object
io.axoniq.framework.springboot.DeadLetterQueueProcessorProperties
@ConfigurationProperties("axon.eventhandling")
public class DeadLetterQueueProcessorProperties
extends Object
Spring Boot configuration properties for Dead Letter Queue (DLQ) settings per event processor.
Binds to the axon.eventhandling.processors.<name>.dlq.* property namespace. Each processor can
independently enable or disable dead-lettering and tune cache settings:
axon:
eventhandling:
processors:
my-processor:
dlq:
enabled: true
cache:
size: 2048
When no properties are configured for a processor, forProcessor(String) returns defaults
(DLQ disabled, cache size 1024).
- Since:
- 5.1.0
- Author:
- Mateusz Nowak
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration for the Dead Letter Queue (DLQ) on a single event processor.static classCache settings for the DLQ sequence identifier in-memory cache.static classPer-processor settings containing DLQ configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforProcessor(String processorName) Returns the DLQ settings for the given processor name.Returns the per-processor DLQ settings map.
-
Constructor Details
-
DeadLetterQueueProcessorProperties
public DeadLetterQueueProcessorProperties()
-
-
Method Details
-
getProcessors
Returns the per-processor DLQ settings map.- Returns:
- the map of processor names to their DLQ settings
-
forProcessor
Returns the DLQ settings for the given processor name. If no settings are configured for this processor, returns defaults (DLQ disabled, cache size 1024).- Parameters:
processorName- The name of the event processor.- Returns:
- The DLQ settings for the processor, never
null.
-