pub struct RecipientListConfig {
pub expression: RecipientListExpression,
pub delimiter: String,
pub parallel: bool,
pub parallel_limit: Option<usize>,
pub stop_on_exception: bool,
pub strategy: MulticastStrategy,
pub max_recipients: usize,
}Fields§
§expression: RecipientListExpression§delimiter: String§parallel: bool§parallel_limit: Option<usize>§stop_on_exception: bool§strategy: MulticastStrategy§max_recipients: usizeMaximum number of URIs the expression may produce. A larger list
is truncated to max_recipients before endpoint resolution.
Defaults to DEFAULT_MAX_RECIPIENTS (1_000). The processor MUST
consult this cap, not the DSL author.
Implementations§
Source§impl RecipientListConfig
impl RecipientListConfig
pub fn new(expression: RecipientListExpression) -> Self
pub fn delimiter(self, d: impl Into<String>) -> Self
pub fn parallel(self, parallel: bool) -> Self
pub fn parallel_limit(self, limit: usize) -> Self
pub fn stop_on_exception(self, stop: bool) -> Self
pub fn strategy(self, strategy: MulticastStrategy) -> Self
Sourcepub fn max_recipients(self, cap: usize) -> Self
pub fn max_recipients(self, cap: usize) -> Self
Override the per-call recipient count cap. Pass a value larger than
DEFAULT_MAX_RECIPIENTS only when the operator has a real reason;
the value is a hard ceiling, not a soft target.
Sourcepub fn validate(&self) -> Result<(), CamelError>
pub fn validate(&self) -> Result<(), CamelError>
Validates the configuration.
Returns Err(CamelError::Config) if:
parallelis set withparallel_limit == 0(would deadlock / no progress)max_recipients == 0(denies every call; reject at config time)
Trait Implementations§
Source§impl Clone for RecipientListConfig
impl Clone for RecipientListConfig
Source§fn clone(&self) -> RecipientListConfig
fn clone(&self) -> RecipientListConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RecipientListConfig
impl !UnwindSafe for RecipientListConfig
impl Freeze for RecipientListConfig
impl Send for RecipientListConfig
impl Sync for RecipientListConfig
impl Unpin for RecipientListConfig
impl UnsafeUnpin for RecipientListConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more