Package com.tnsai.state
Class FileCheckpointer.Builder
java.lang.Object
com.tnsai.state.FileCheckpointer.Builder
- Enclosing class:
FileCheckpointer
Builder for FileCheckpointer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the base directory from a string path.Set the base directory for checkpoint storage.build()Build the FileCheckpointer.enableCompression(boolean enableCompression) Enable or disable GZIP compression.maxCheckpointsPerThread(int maxCheckpointsPerThread) Set maximum checkpoints to keep per thread.prettyPrint(boolean prettyPrint) Enable or disable pretty-printed JSON output.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseDir
Set the base directory for checkpoint storage.- Parameters:
baseDir- base directory path- Returns:
- this builder
-
baseDir
Set the base directory from a string path.- Parameters:
baseDir- base directory path string- Returns:
- this builder
-
enableCompression
Enable or disable GZIP compression.- Parameters:
enableCompression- true to enable compression- Returns:
- this builder
-
maxCheckpointsPerThread
Set maximum checkpoints to keep per thread. Older checkpoints are automatically deleted (rotation).- Parameters:
maxCheckpointsPerThread- max checkpoints (0 = unlimited)- Returns:
- this builder
-
prettyPrint
Enable or disable pretty-printed JSON output.- Parameters:
prettyPrint- true for indented JSON- Returns:
- this builder
-
build
Build the FileCheckpointer.- Returns:
- configured FileCheckpointer instance
-