> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# DurabilityControl

> Interface exported by @botmesh/core.

Defined in: [durability/engine.ts:81](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L81)

`bot.durability`: the journals plus operator controls.

## Properties

### backend

```ts theme={null}
readonly backend: DurabilityBackend;
```

Defined in: [durability/engine.ts:82](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L82)

***

### inbox

```ts theme={null}
readonly inbox: InboxJournal;
```

Defined in: [durability/engine.ts:83](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L83)

***

### outbox

```ts theme={null}
readonly outbox: OutboxJournal;
```

Defined in: [durability/engine.ts:84](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L84)

***

### instanceId

```ts theme={null}
readonly instanceId: string;
```

Defined in: [durability/engine.ts:86](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L86)

This process's lease owner id.

***

### scope

```ts theme={null}
readonly scope: string | undefined;
```

Defined in: [durability/engine.ts:91](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L91)

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.

## Methods

### replayInbound()

```ts theme={null}
replayInbound(id): Promise<void>;
```

Defined in: [durability/engine.ts:93](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L93)

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

#### Parameters

| Parameter | Type |
| - | - |
| `id` | `string` |

#### Returns

`Promise`\<`void`>

***

### retrySend()

```ts theme={null}
retrySend(key): Promise<void>;
```

Defined in: [durability/engine.ts:95](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L95)

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

#### Parameters

| Parameter | Type |
| - | - |
| `key` | `string` |

#### Returns

`Promise`\<`void`>

***

### sweep()

```ts theme={null}
sweep(): Promise<void>;
```

Defined in: [durability/engine.ts:97](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L97)

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

#### Returns

`Promise`\<`void`>

***

### metrics()

```ts theme={null}
metrics(): DurabilityMetrics;
```

Defined in: [durability/engine.ts:98](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/engine.ts#L98)

#### Returns

[`DurabilityMetrics`](https://botmesh.afaya.com.co/api/core/interfaces/DurabilityMetrics)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.