コンテンツにスキップ
日本語

ControlAwareMailboxOptionsValidator

このコンテンツはまだ日本語訳がありません。

Defined in: src/mailbox/ControlAwareMailboxOptions.ts:161

Validates resolved ControlAwareMailboxOptionsType settings.

isControl gets a required-and-callable check for the reason PriorityMailboxOptionsValidator gives priorityFor one: the accepted input union includes Partial<…>, so new ControlAwareMailbox({}) type-checks, and without the check it would fail on the first enqueue — inside a sender’s tell, where the containment would then class every message ordinary and the mistake would surface as a mailbox that never lets anything overtake.

overflow and deadLetterDrops without capacity are rejected rather than ignored: an unbounded mailbox never overflows and never drops, so either one on its own is a no-op that reads like configuration.

T

new ControlAwareMailboxOptionsValidator<T>(): ControlAwareMailboxOptionsValidator<T>

Defined in: src/mailbox/ControlAwareMailboxOptions.ts:162

ControlAwareMailboxOptionsValidator<T>

OptionsValidator<ControlAwareMailboxOptionsType<T>>.constructor

validate(settings): void

Defined in: src/util/OptionsValidator.ts:109

Check the (merged) settings; throws OptionsError on the first violation. Unset (undefined) fields always pass.

Partial<T>

void

OptionsValidator.validate