Pular para o conteúdo
Português (BR)

BoundedMailboxSettings

Este conteúdo não está disponível em sua língua ainda.

Defined in: src/mailbox/BoundedMailbox.ts:12

readonly capacity: number

Defined in: src/mailbox/BoundedMailbox.ts:13


readonly optional onDrop?: (reason) => void

Defined in: src/mailbox/BoundedMailbox.ts:25

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 (“reason”: “drop-head” / “drop-new”). Never fires for reject — that throws instead.

Mailboxes constructed by ActorCell’s default factory wire this to the actor_mailbox_dropped_total Counter so operators can spot slow-consumer signals without code changes.

"drop-head" | "drop-new"

void


readonly optional overflow?: BoundedMailboxOverflow

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