Class DefaultDeadLetterJdbcConverter.Builder<E extends EventMessage>
java.lang.Object
org.axonframework.messaging.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 Converter and
EventConverter are hard requirements and should be provided.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Initializes aDefaultDeadLetterJdbcConverteras specified through this Builder.eventConverter(EventConverter eventConverter) genericConverter(Converter genericConverter) Sets theConverterto convert theTrackingTokenand diagnostics.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.
-
genericConverter
Sets theConverterto convert theTrackingTokenand diagnostics.- Parameters:
genericConverter- The converter used to convertTrackingTokensand diagnostics.- Returns:
- The current Builder, for fluent interfacing.
-
eventConverter
- Parameters:
eventConverter- The event converter used to convertevent payloadsandMetadatainstances.- 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.
-