public final class SnapshotStore extends Object
Using this example. Stores JSON once under an immutable identifier, using a local directory or the configured private GCS bucket. Cloud credentials come from runtime identity. Storage and report serialization are separate from financial computation so reloading a report does not rerun a strategy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SnapshotStore.Token |
| Constructor and Description |
|---|
SnapshotStore(Path directory) |
SnapshotStore(String bucket,
String api,
SnapshotStore.Token token) |
| Modifier and Type | Method and Description |
|---|---|
static SnapshotStore |
fromEnvironment() |
String |
read(String id) |
String |
save(String id,
String body) |
static void |
validateId(String id) |
public SnapshotStore(Path directory) throws IOException
IOExceptionpublic SnapshotStore(String bucket, String api, SnapshotStore.Token token)
public static SnapshotStore fromEnvironment() throws IOException
IOExceptionpublic String save(String id, String body) throws IOException
IOExceptionpublic String read(String id) throws IOException
IOExceptionpublic static void validateId(String id)
Copyright © 2026. All rights reserved.