@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Class InMemoryEstablishedProposalStore

    Process-local reference implementation. Use a durable store in clustered deployments.

    Implements

    Index
    • Delete completion tombstones whose store-authored retainUntil is at or before the store's current time. Implementations must never prune earlier than ESTABLISHED_PROPOSAL_COMPLETION_TOMBSTONE_RETENTION_MS after completion. After pruning, findSubmittedTask may return undefined and reserveMutation may return any result justified by the remaining source records (including a fresh reservation when every source was restored). limit is the maximum number of tombstones deleted in one call; ordering is unspecified. Return the number of deletions committed. Durable stores must select eligible rows and delete them atomically using one transaction and one backing-store clock snapshot.

      Optional for backward compatibility; durable implementations should implement this or provide an equivalent database-owned sweeper.

      Parameters

      • limit: number = 1_000

      Returns Promise<number>