Class DeadLetterSchema.Builder
java.lang.Object
org.axonframework.messaging.eventhandling.deadletter.jdbc.DeadLetterSchema.Builder
- Enclosing class:
DeadLetterSchema
Instantiate a builder to construct a
DeadLetterSchema.
All configurable columns default to their respective field name. Thus, the result of the
DeadLetterSchema.diagnosticsColumn() defaults to diagnosticsColumn, etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregateIdentifierColumn(String aggregateIdentifierColumn) Sets the name of theaggregateIdentifiercolumn.aggregateTypeColumn(String aggregateTypeColumn) Sets the name of theaggregateTypecolumn.build()Initializes aDeadLetterSchemaas specified through this Builder.causeMessageColumn(String causeMessageColumn) Sets the name of thecauseMessagecolumn.causeTypeColumn(String causeTypeColumn) Sets the name of thecauseTypecolumn.deadLetterIdentifierColumn(String deadLetterIdentifierColumn) Sets the name of thedeadLetterIdentifiercolumn.deadLetterTable(String deadLetterTable) Sets the name of the dead-letter table.diagnosticsColumn(String diagnosticsColumn) Sets the name of thediagnosticscolumn.enqueuedAtColumn(String enqueuedAtColumn) Sets the name of theenqueuedAtcolumn.eventIdentifierColumn(String eventIdentifierColumn) Sets the name of theeventIdentifiercolumn.eventTypeColumn(String eventTypeColumn) Sets the name of theeventTypecolumn.lastTouchedColumn(String lastTouchedColumn) Sets the name of thelastTouchedcolumn.metadataColumn(String metadataColumn) Sets the name of themetadatacolumn.payloadColumn(String payloadColumn) Sets the name of thepayloadcolumn.processingGroupColumn(String processingGroupColumn) Sets the name of theprocessingGroupcolumn.processingStartedColumn(String processingStartedColumn) Sets the name of theprocessingStartedcolumn.sequenceIdentifierColumn(String sequenceIdentifierColumn) Sets the name of thesequenceIdentifiercolumn.sequenceIndexColumn(String sequenceIndexColumn) Sets the name of thesequenceIndexcolumn.sequenceNumberColumn(String sequenceNumberColumn) Sets the name of thesequenceNumbercolumn.timestampColumn(String timestampColumn) Sets the name of thetimestampcolumn.tokenColumn(String tokenColumn) Sets the name of thetokencolumn.tokenTypeColumn(String tokenTypeColumn) Sets the name of thetokenTypecolumn.typeColumn(String typeColumn) Sets the name of thetypecolumn.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deadLetterTable
Sets the name of the dead-letter table. Defaults toDeadLetterEntry.- Parameters:
deadLetterTable- The name for the dead-letter table.- Returns:
- The current Builder instance, for fluent interfacing.
-
deadLetterIdentifierColumn
Sets the name of thedeadLetterIdentifiercolumn. Defaults todeadLetterIdentifier.- Parameters:
deadLetterIdentifierColumn- The name for thedeadLetterIdentifiercolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
processingGroupColumn
Sets the name of theprocessingGroupcolumn. Defaults toprocessingGroup.- Parameters:
processingGroupColumn- The name for theprocessingGroupcolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
sequenceIdentifierColumn
Sets the name of thesequenceIdentifiercolumn. Defaults tosequenceIdentifier.- Parameters:
sequenceIdentifierColumn- The name for thesequenceIdentifiercolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
sequenceIndexColumn
Sets the name of thesequenceIndexcolumn. Defaults tosequenceIndex.- Parameters:
sequenceIndexColumn- The name for thesequenceIndexcolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
eventTypeColumn
Sets the name of theeventTypecolumn. Defaults toeventType.- Parameters:
eventTypeColumn- The name for theeventTypecolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
eventIdentifierColumn
Sets the name of theeventIdentifiercolumn. Defaults toeventIdentifier.- Parameters:
eventIdentifierColumn- The name for theeventIdentifiercolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
typeColumn
Sets the name of thetypecolumn. Defaults totype.- Parameters:
typeColumn- The qualifiedName for thetypecolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
timestampColumn
Sets the name of thetimestampcolumn. Defaults totimestamp.- Parameters:
timestampColumn- The name for thetimeStampcolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
payloadColumn
Sets the name of thepayloadcolumn. Defaults topayload.- Parameters:
payloadColumn- The name for thepayloadcolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
metadataColumn
Sets the name of themetadatacolumn. Defaults tometadata.- Parameters:
metadataColumn- The name for themetadatacolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
aggregateTypeColumn
Sets the name of theaggregateTypecolumn. Defaults totype.- Parameters:
aggregateTypeColumn- The name for theaggregateTypecolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
aggregateIdentifierColumn
Sets the name of theaggregateIdentifiercolumn. Defaults toaggregateIdentifier.- Parameters:
aggregateIdentifierColumn- The name for theaggregateIdentifiercolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
sequenceNumberColumn
Sets the name of thesequenceNumbercolumn. Defaults tosequenceNumber.- Parameters:
sequenceNumberColumn- The name for thesequenceNumbercolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
tokenTypeColumn
Sets the name of thetokenTypecolumn. Defaults totokenType.- Parameters:
tokenTypeColumn- The name for thetokenTypecolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
tokenColumn
Sets the name of thetokencolumn. Defaults totoken.- Parameters:
tokenColumn- The name for thetokencolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
enqueuedAtColumn
Sets the name of theenqueuedAtcolumn. Defaults toenqueuedAt.- Parameters:
enqueuedAtColumn- The name for theenqueuedAtcolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
lastTouchedColumn
Sets the name of thelastTouchedcolumn. Defaults tolastTouched.- Parameters:
lastTouchedColumn- The name for thelastTouchedcolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
processingStartedColumn
Sets the name of theprocessingStartedcolumn. Defaults toprocessingStarted.- Parameters:
processingStartedColumn- The name for theprocessingStartedcolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
causeTypeColumn
Sets the name of thecauseTypecolumn. Defaults tocauseType.- Parameters:
causeTypeColumn- The name for thecauseTypecolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
causeMessageColumn
Sets the name of thecauseMessagecolumn. Defaults tocauseMessage.- Parameters:
causeMessageColumn- The name for thecauseMessagecolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
diagnosticsColumn
Sets the name of thediagnosticscolumn. Defaults todiagnostics.- Parameters:
diagnosticsColumn- The name for thediagnosticscolumn.- Returns:
- The current Builder instance, for fluent interfacing.
-
build
Initializes aDeadLetterSchemaas specified through this Builder.- Returns:
- A
DeadLetterSchemaas specified through this Builder.
-