pub struct ThrowOnNoPoll { /* private fields */ }Expand description
Strategy that throws a CamelError::ProcessorError when pollEnrich
receives no message. Wraps a base EnrichmentStrategy for the
aggregate behaviour.
Implementations§
Source§impl ThrowOnNoPoll
impl ThrowOnNoPoll
pub fn new(inner: Arc<dyn EnrichmentStrategy>) -> Self
Trait Implementations§
Source§impl EnrichmentStrategy for ThrowOnNoPoll
impl EnrichmentStrategy for ThrowOnNoPoll
fn aggregate(&self, original: Exchange, enriched: Exchange) -> Exchange
Source§fn on_no_poll<'life0, 'async_trait>(
&'life0 self,
_original: Exchange,
) -> Pin<Box<dyn Future<Output = Result<Exchange, CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_no_poll<'life0, 'async_trait>(
&'life0 self,
_original: Exchange,
) -> Pin<Box<dyn Future<Output = Result<Exchange, CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when pollEnrich receives no message (
None from
PollingConsumer::receive). The default implementation passes the
original exchange through unchanged, matching Camel 4.x passthrough
semantics. Override to throw an error or perform other actions.Auto Trait Implementations§
impl !RefUnwindSafe for ThrowOnNoPoll
impl !UnwindSafe for ThrowOnNoPoll
impl Freeze for ThrowOnNoPoll
impl Send for ThrowOnNoPoll
impl Sync for ThrowOnNoPoll
impl Unpin for ThrowOnNoPoll
impl UnsafeUnpin for ThrowOnNoPoll
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