@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface DurabilityControl

    bot.durability: the journals plus operator controls.

    interface DurabilityControl {
        backend: DurabilityBackend;
        inbox: InboxJournal;
        outbox: OutboxJournal;
        instanceId: string;
        scope: string | undefined;
        replayInbound(id: string): Promise<void>;
        retrySend(key: string): Promise<void>;
        sweep(): Promise<void>;
        metrics(): DurabilityMetrics;
    }
    Index
    instanceId: string

    This process's lease owner id.

    scope: string | undefined

    The scope of this bot's records in a shared backend (derived from its namespace), or undefined when the backend has no scope(). journal.scope(scope) opens the same view.

    • Operator replay of an inbound record (e.g. from the DLQ): it is processed again by the sweeper.

      Parameters

      • id: string

      Returns Promise<void>

    • Operator retry of a failed/dead/unknown send.

      Parameters

      • key: string

      Returns Promise<void>

    • Run one sweeper pass now (retries, expired leases, purge).

      Returns Promise<void>