Prometheus Entity Management API
    Preparing search index...

    Interface CheckpointingPersistenceAdapter

    A persistence adapter that can also commit a resume checkpoint atomically.

    The plain GraphPersistenceAdapter contract cannot express this: its set writes a value and returns, so a checkpoint written after it is a second transaction, and a crash between the two leaves rows whose resume position is unknown. setWithCheckpoint closes that window (ADR-009 G3).

    interface CheckpointingPersistenceAdapter {
        get: (key: string) => string | Promise<string | null> | null;
        getCheckpoint: (key: string) => Promise<ReplicaCheckpoint | null>;
        remove?: (key: string) => void | Promise<void>;
        set: (key: string, value: string) => void | Promise<void>;
        setWithCheckpoint: (write: CheckpointedWrite) => Promise<void>;
    }

    Hierarchy (View Summary)

    Index
    get: (key: string) => string | Promise<string | null> | null
    getCheckpoint: (key: string) => Promise<ReplicaCheckpoint | null>

    The checkpoint stored for key, or null if none.

    remove?: (key: string) => void | Promise<void>
    set: (key: string, value: string) => void | Promise<void>
    setWithCheckpoint: (write: CheckpointedWrite) => Promise<void>

    Commit rows and their resume checkpoint in ONE transaction.