Skip to main content

Interface: OutboxDispatcherOptions

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:141

What an OutboxDispatcher sends from, where to, and how.

Properties​

batch?​

optional batch: number

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:155

Deliveries a pass takes. Default 50.


clock?​

optional clock: IClock

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:153

What is due, and the envelope's timestamp, by this clock; the wall clock when absent.


logger?​

optional logger: object

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:159

Told a failed delivery's id and the error's name, never its body, its url or its secret.

warn()​

warn(msg): void

Parameters​
msg​

string

Returns​

void


mail?​

optional mail: MailSend

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:149

Sends a delivery of kind mail; absent, such a delivery fails for its backoff and the warning names it. With it, the outbox needs markDead, so an unknown outcome can end its delivery rather than retry a send the destination may have made.


names?​

optional names: EnvelopeHeaderNames

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:151

The envelope's header names; the library's defaults when absent.


outbox​

outbox: IOutbox

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:143

The outbox whose due deliveries it sends; one dispatcher per outbox.


resolve()​

resolve: (destinationRef) => Promise<DeliveryDestination | undefined>

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:145

A delivery's destination by its destinationRef, or undefined when the host no longer holds it.

Parameters​

destinationRef​

string

Returns​

Promise<DeliveryDestination | undefined>


send?​

optional send: DeliverySend

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:147

How each delivery is posted; httpsSend when absent.


timeoutMs?​

optional timeoutMs: number

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:157

Each post's deadline. Default 10000.