Class DefaultDeadLetterStatementFactory<E extends EventMessage>

java.lang.Object
org.axonframework.messaging.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 genericConverter to convert TrackingTokens and diagnostics. Lastly, this factory uses the eventConverter to convert the event payload and Metadata of any DeadLetter.

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

Since:
4.8.0
Author:
Steven van Beelen