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

    Class StaleLeaseError

    A journal completion (ack, fail, markSent, …) presented a fencing token that is not the record's current claim: the lease expired and someone else re-claimed the record, or it already left the leased state. The stale holder must drop its result.

    Hierarchy

    • Error
      • StaleLeaseError
    Index
    • Parameters

      • id: string

        Inbox record id or outbox key.

      • fencingToken: number

        The token that was presented.

      • currentToken: number

        The record's current token (-1 when the record does not exist).

      • state: string

        The record's current state ('missing' when it does not exist).

      Returns StaleLeaseError

    id: string

    Inbox record id or outbox key.

    fencingToken: number

    The token that was presented.

    currentToken: number

    The record's current token (-1 when the record does not exist).

    state: string

    The record's current state ('missing' when it does not exist).