BoundedMailboxSettings
このコンテンツはまだ日本語訳がありません。
Defined in: src/mailbox/BoundedMailbox.ts:12
Properties
Section titled “Properties”capacity
Section titled “capacity”
readonlycapacity:number
Defined in: src/mailbox/BoundedMailbox.ts:13
onDrop?
Section titled “onDrop?”
readonlyoptionalonDrop?: (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.
Parameters
Section titled “Parameters”reason
Section titled “reason”"drop-head" | "drop-new"
Returns
Section titled “Returns”void
overflow?
Section titled “overflow?”
readonlyoptionaloverflow?:BoundedMailboxOverflow
Defined in: src/mailbox/BoundedMailbox.ts:14