Class TokenSchema.Builder
java.lang.Object
org.axonframework.messaging.eventhandling.processing.streaming.token.store.jdbc.TokenSchema.Builder
- Enclosing class:
TokenSchema
Builder for an
TokenSchema that gets initialized with default values.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newTokenSchemafrom builder values.setMaskColumn(String columnName) Sets the name of the processor segment mask column.setOwnerColumn(String columnName) Sets the name of the owner column.setProcessorNameColumn(String columnName) Sets the name of the processor name column.setSegmentColumn(String columnName) Sets the name of the processor segment column.setTimestampColumn(String columnName) Sets the name of the timestamp column.setTokenColumn(String columnName) Sets the name of the serialized token column.setTokenTable(String tokenTable) Sets the name of the token entry table.setTokenTypeColumn(String columnName) Sets the name of the token type column.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setTokenTable
Sets the name of the token entry table. Defaults to 'TokenEntry'.- Parameters:
tokenTable- the token table name- Returns:
- the modified Builder instance
-
setProcessorNameColumn
Sets the name of the processor name column. Defaults to 'processorName'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
setSegmentColumn
Sets the name of the processor segment column. Defaults to 'segment'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
setMaskColumn
Sets the name of the processor segment mask column. Defaults to 'mask'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
setTokenColumn
Sets the name of the serialized token column. Defaults to 'token'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
setTokenTypeColumn
Sets the name of the token type column. Defaults to 'tokenType'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
setTimestampColumn
Sets the name of the timestamp column. Defaults to 'timestamp'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
setOwnerColumn
Sets the name of the owner column. Defaults to 'owner'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
build
Builds a newTokenSchemafrom builder values.- Returns:
- TokenSchema from this builder
-