ControlAwareMailboxOptionsValidator
Ce contenu n’est pas encore disponible dans votre langue.
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.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”T
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ControlAwareMailboxOptionsValidator<
T>():ControlAwareMailboxOptionsValidator<T>
Defined in: src/mailbox/ControlAwareMailboxOptions.ts:162
Returns
Section titled “Returns”ControlAwareMailboxOptionsValidator<T>
Overrides
Section titled “Overrides”OptionsValidator<ControlAwareMailboxOptionsType<T>>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”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.
Parameters
Section titled “Parameters”settings
Section titled “settings”Partial<T>
Returns
Section titled “Returns”void
