Class DynamoDbSessionStoreOptions.Builder

java.lang.Object
com.google.genkit.plugins.awsbedrock.session.DynamoDbSessionStoreOptions.Builder
Enclosing class:
DynamoDbSessionStoreOptions

public static final class DynamoDbSessionStoreOptions.Builder extends Object
  • Method Details

    • tableName

      public DynamoDbSessionStoreOptions.Builder tableName(String tableName)
      Sets the DynamoDB table name.
      Parameters:
      tableName - the table name
      Returns:
      this builder
    • checkpointInterval

      public DynamoDbSessionStoreOptions.Builder checkpointInterval(int checkpointInterval)
      Sets the number of turns between full checkpoints.
      Parameters:
      checkpointInterval - the checkpoint interval (must be >= 1)
      Returns:
      this builder
    • shardSize

      public DynamoDbSessionStoreOptions.Builder shardSize(int shardSize)
      Sets the shard size in bytes for checkpoint state (must stay under the 400 KB item cap).
      Parameters:
      shardSize - the shard size in bytes (must be >= 1)
      Returns:
      this builder
    • snapshotPathPrefix

      public DynamoDbSessionStoreOptions.Builder snapshotPathPrefix(Function<SessionStoreOptions,String> snapshotPathPrefix)
      Sets the function that derives the per-tenant partition-key prefix.
      Parameters:
      snapshotPathPrefix - the prefix function
      Returns:
      this builder
    • createTableIfNotExists

      public DynamoDbSessionStoreOptions.Builder createTableIfNotExists(boolean createTableIfNotExists)
      Sets whether to create the table on first use if it does not exist.
      Parameters:
      createTableIfNotExists - whether to create the table when missing
      Returns:
      this builder
    • pollIntervalMs

      public DynamoDbSessionStoreOptions.Builder pollIntervalMs(long pollIntervalMs)
      Sets the subscription poll interval in milliseconds.
      Parameters:
      pollIntervalMs - the poll interval (must be >= 1)
      Returns:
      this builder
    • build

      Builds a new DynamoDbSessionStoreOptions.
      Returns:
      a new options instance