Class DefaultDeadLetterStatementFactory<E extends EventMessage<?>>

java.lang.Object
org.axonframework.eventhandling.deadletter.jdbc.DefaultDeadLetterStatementFactory<E>
Type Parameters:
E - An implementation of EventMessage within the DeadLetter this factory constructs PreparedStatements for.
All Implemented Interfaces:
DeadLetterStatementFactory<E>

public class DefaultDeadLetterStatementFactory<E extends EventMessage<?>> extends Object implements DeadLetterStatementFactory<E>
Default implementation of the DeadLetterStatementFactory used by the JdbcSequencedDeadLetterQueue Constructs PreparedStatements that are compatible with most databases.

This factory expects a DeadLetterSchema to base the table and columns names used for all PreparedStatements. Furthermore, it uses the configurable genericSerializer to serialize TrackingTokens in TrackedEventMessage instances. Lastly, this factory uses the eventSerializer to serialize the event payload, MetaData, and diagnostics of any DeadLetter.

This factory and the DeadLetterJdbcConverter must use the same Serializers and DeadLetterSchema for the applicable fields.

Since:
4.8.0
Author:
Steven van Beelen