Aller au contenu
Français

BoundedMailboxOptionsType

Ce contenu n’est pas encore disponible dans votre langue.

BoundedMailboxOptionsType = object

Defined in: src/mailbox/BoundedMailboxOptions.ts:14

Plain options-object shape accepted by a BoundedMailbox.

readonly capacity: number

Defined in: src/mailbox/BoundedMailboxOptions.ts:15


readonly optional onDrop?: (reason) => void

Defined in: src/mailbox/BoundedMailboxOptions.ts:26

Optional hook fired each time a message is dropped by the overflow policy. Receives the policy that triggered the drop so the consumer can label metrics. Never fires for reject — that throws instead.

Yours alone: the cell reports to actor_mailbox_dropped_total through DropReportingMailbox.observeDrops, which runs alongside this rather than replacing it.

MailboxDropReason

void


readonly optional overflow?: BoundedMailboxOverflow

Defined in: src/mailbox/BoundedMailboxOptions.ts:16