InMemoryAgentProcessSnapshotStore

In-memory implementation of AgentProcessSnapshotStore.

Intended for tests and local development. This store has no TTL, eviction, or size bound; production deployments should use a shared durable implementation.

This implementation enforces the same optimistic version contract expected of durable stores: create-only saves are allowed only when no snapshot exists, while updates must pass the currently stored version.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
open override fun delete(processId: String)

Delete the latest serialized snapshot for the process.

Link copied to clipboard

Return latest serialized snapshots for direct child processes.

Link copied to clipboard

Return the latest serialized snapshot for the process, if one exists.

Link copied to clipboard
open override fun save(snapshot: SerializedAgentProcessSnapshot, expectedVersion: Long?): StoredSnapshotMetadata

Save a new or updated snapshot.