Class DefaultDeadLetterJdbcConverter.Builder<E extends EventMessage<?>>
java.lang.Object
org.axonframework.eventhandling.deadletter.jdbc.DefaultDeadLetterJdbcConverter.Builder<E>
- Type Parameters:
E- An implementation ofEventMessagecontained within theJdbcDeadLetterimplementation this converter converts.
- Enclosing class:
DefaultDeadLetterJdbcConverter<E extends EventMessage<?>>
protected static class DefaultDeadLetterJdbcConverter.Builder<E extends EventMessage<?>>
extends Object
Builder class to instantiate a
DefaultDeadLetterJdbcConverter.
The schema is defaulted to a DeadLetterSchema.defaultSchema().
The generic Serializer and
event Serializer are hard requirements and should be provided.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Initializes aDefaultDeadLetterJdbcConverteras specified through this Builder.eventSerializer(Serializer eventSerializer) genericSerializer(Serializer genericSerializer) schema(DeadLetterSchema schema) Sets the givenschemaused to define the column names / labels with to return fields from theResultSet.protected voidvalidate()Validate whether the fields contained in this Builder are set accordingly.
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
schema
Sets the givenschemaused to define the column names / labels with to return fields from theResultSet. Defaults to aDeadLetterSchema.defaultSchema().- Parameters:
schema- TheDeadLetterSchemaused to define the table and column names used when constructing allPreparedStatements.- Returns:
- The current Builder, for fluent interfacing.
-
genericSerializer
- Parameters:
genericSerializer- The serializer used to deserializeTrackingTokenswith- Returns:
- The current Builder, for fluent interfacing.
-
eventSerializer
- Parameters:
eventSerializer- The serializer used to deserializeevent payloads,MetaDatainstances, anddiagnosticswith.- Returns:
- The current Builder, for fluent interfacing.
-
build
Initializes aDefaultDeadLetterJdbcConverteras specified through this Builder.- Returns:
- A
DefaultDeadLetterJdbcConverteras specified through this Builder.
-
validate
protected void validate()Validate whether the fields contained in this Builder are set accordingly.- Throws:
AxonConfigurationException- When one field asserts to be incorrect according to the Builder's specifications.
-