java.lang.Object
org.axonframework.messaging.eventhandling.processing.streaming.token.store.jdbc.TokenSchema.Builder
Enclosing class:
TokenSchema

public static class TokenSchema.Builder extends Object
Builder for an TokenSchema that gets initialized with default values.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setTokenTable

      public TokenSchema.Builder setTokenTable(String tokenTable)
      Sets the name of the token entry table. Defaults to 'TokenEntry'.
      Parameters:
      tokenTable - the token table name
      Returns:
      the modified Builder instance
    • setProcessorNameColumn

      public TokenSchema.Builder setProcessorNameColumn(String columnName)
      Sets the name of the processor name column. Defaults to 'processorName'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • setSegmentColumn

      public TokenSchema.Builder setSegmentColumn(String columnName)
      Sets the name of the processor segment column. Defaults to 'segment'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • setMaskColumn

      public TokenSchema.Builder setMaskColumn(String columnName)
      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

      public TokenSchema.Builder setTokenColumn(String columnName)
      Sets the name of the serialized token column. Defaults to 'token'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • setTokenTypeColumn

      public TokenSchema.Builder setTokenTypeColumn(String columnName)
      Sets the name of the token type column. Defaults to 'tokenType'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • setTimestampColumn

      public TokenSchema.Builder setTimestampColumn(String columnName)
      Sets the name of the timestamp column. Defaults to 'timestamp'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • setOwnerColumn

      public TokenSchema.Builder setOwnerColumn(String columnName)
      Sets the name of the owner column. Defaults to 'owner'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • build

      public TokenSchema build()
      Builds a new TokenSchema from builder values.
      Returns:
      TokenSchema from this builder