E
- An implementation of EventMessage
contained within the JdbcDeadLetter
implementation
this converter converts.protected static class DefaultDeadLetterJdbcConverter.Builder<E extends EventMessage<?>> extends Object
DefaultDeadLetterJdbcConverter
.
The schema
is defaulted to a DeadLetterSchema.defaultSchema()
.
The generic Serializer
and
event Serializer
are hard requirements and should be provided.
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultDeadLetterJdbcConverter<E> |
build()
Initializes a
DefaultDeadLetterJdbcConverter as specified through this Builder. |
DefaultDeadLetterJdbcConverter.Builder<E> |
eventSerializer(Serializer eventSerializer)
|
DefaultDeadLetterJdbcConverter.Builder<E> |
genericSerializer(Serializer genericSerializer)
|
DefaultDeadLetterJdbcConverter.Builder<E> |
schema(DeadLetterSchema schema)
Sets the given
schema used to define the column names / labels with to return fields from the
ResultSet . |
protected void |
validate()
Validate whether the fields contained in this Builder are set accordingly.
|
public DefaultDeadLetterJdbcConverter.Builder<E> schema(DeadLetterSchema schema)
schema
used to define the column names / labels with to return fields from the
ResultSet
. Defaults to a DeadLetterSchema.defaultSchema()
.schema
- The DeadLetterSchema
used to define the table and column names used when constructing
all PreparedStatements
.public DefaultDeadLetterJdbcConverter.Builder<E> genericSerializer(Serializer genericSerializer)
genericSerializer
- The serializer used to deserialize TrackingTokens
withpublic DefaultDeadLetterJdbcConverter.Builder<E> eventSerializer(Serializer eventSerializer)
eventSerializer
- The serializer used to deserialize event payloads
,
MetaData
instances, and
diagnostics
with.public DefaultDeadLetterJdbcConverter<E> build()
DefaultDeadLetterJdbcConverter
as specified through this Builder.DefaultDeadLetterJdbcConverter
as specified through this Builder.protected void validate()
AxonConfigurationException
- When one field asserts to be incorrect according to the Builder's
specifications.Copyright © 2010–2024. All rights reserved.