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

    Class FileDurability

    DurabilityBackend persisted to a JSON file (single process).

    Hierarchy (View Summary)

    Index
    exclusive: boolean

    true when only one process can use the backend at a time (memory, file). A restarted process then knows every lease of its instanceId is its own dead incarnation's.

    scopeName: string | undefined

    The scope of this view (undefined = the unscoped tables).

    • Wait for pending writes and release the lock file. Idempotent; later writes reject (a closed journal never writes without its lock). The bot does NOT call this on stop() (a restart reuses the instance).

      Returns Promise<void>

    • get locked(): boolean

      The file is held under the advisory lock and the journal is not closed.

      Returns boolean