Skip to main content
Defined in: durability/types.ts:320 A durability backend: the two journals plus optional lifecycle.

Extended by

Properties

inbox

Defined in: durability/types.ts:321

outbox

Defined in: durability/types.ts:322

exclusive?

Defined in: durability/types.ts:327 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.

Methods

scope()?

Defined in: durability/types.ts:334 A view of the same storage holding only the records of name. The bot opens the view of its namespace (tenant, environment, bot, connection), so several bots can share one backend: each claims, replays and deduplicates only its own records, and explicit idempotency keys are per bot. A backend without scope must not be shared between bots.

Parameters

Returns

DurabilityBackend

start()?

Defined in: durability/types.ts:336 Called by bot.start() before anything is replayed.

Returns

Promise<void>

stop()?

Defined in: durability/types.ts:338 Called by bot.stop() after the provider stopped.

Returns

Promise<void>