Class DynamoDbSessionStoreOptions.Builder
java.lang.Object
com.google.genkit.plugins.awsbedrock.session.DynamoDbSessionStoreOptions.Builder
- Enclosing class:
DynamoDbSessionStoreOptions
Builder for
DynamoDbSessionStoreOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newDynamoDbSessionStoreOptions.checkpointInterval(int checkpointInterval) Sets the number of turns between full checkpoints.createTableIfNotExists(boolean createTableIfNotExists) Sets whether to create the table on first use if it does not exist.pollIntervalMs(long pollIntervalMs) Sets the subscription poll interval in milliseconds.shardSize(int shardSize) Sets the shard size in bytes for checkpoint state (must stay under the 400 KB item cap).snapshotPathPrefix(Function<SessionStoreOptions, String> snapshotPathPrefix) Sets the function that derives the per-tenant partition-key prefix.Sets the DynamoDB table name.
-
Method Details
-
tableName
Sets the DynamoDB table name.- Parameters:
tableName- the table name- Returns:
- this builder
-
checkpointInterval
Sets the number of turns between full checkpoints.- Parameters:
checkpointInterval- the checkpoint interval (must be>= 1)- Returns:
- this builder
-
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
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
Sets the subscription poll interval in milliseconds.- Parameters:
pollIntervalMs- the poll interval (must be>= 1)- Returns:
- this builder
-
build
Builds a newDynamoDbSessionStoreOptions.- Returns:
- a new options instance
-