public final class ReportStore extends Object
Using this example. Persists and retrieves typed app reports over SnapshotStore. Use the app namespace with the saved identifier so different tools share storage without mixing report types; reports are snapshots of computed results rather than instructions to recompute with current prices.
| Constructor and Description |
|---|
ReportStore(Path directory) |
ReportStore(SnapshotStore snapshots) |
ReportStore(String bucket,
String api,
SnapshotStore.Token token) |
| Modifier and Type | Method and Description |
|---|---|
static ReportStore |
fromEnvironment() |
String |
read(String id,
String app)
Returns null for another app's snapshot as well as for a missing report.
|
String |
save(SavedReport report,
String app)
Assign a fresh URL for every run, even when the caller reuses a result object.
|
public ReportStore(SnapshotStore snapshots)
public ReportStore(Path directory) throws IOException
IOExceptionpublic ReportStore(String bucket, String api, SnapshotStore.Token token)
public static ReportStore fromEnvironment() throws IOException
IOExceptionpublic String save(SavedReport report, String app) throws IOException
IOExceptionpublic String read(String id, String app) throws IOException
IOExceptionCopyright © 2026. All rights reserved.