BoundedMailboxOptionsType
Este conteúdo não está disponível em sua língua ainda.
BoundedMailboxOptionsType =
object
Defined in: src/mailbox/BoundedMailboxOptions.ts:14
Plain options-object shape accepted by a BoundedMailbox.
Properties
Section titled “Properties”capacity
Section titled “capacity”
readonlycapacity:number
Defined in: src/mailbox/BoundedMailboxOptions.ts:15
onDrop?
Section titled “onDrop?”
readonlyoptionalonDrop?: (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.
Parameters
Section titled “Parameters”reason
Section titled “reason”Returns
Section titled “Returns”void
overflow?
Section titled “overflow?”
readonlyoptionaloverflow?:BoundedMailboxOverflow
Defined in: src/mailbox/BoundedMailboxOptions.ts:16
