pub struct SedaComponent { /* private fields */ }Expand description
Cloning shares the endpoint registry, so a clone registered into a
CamelContext and the original handle observe the same per-endpoint
state (the MockComponent pattern).
Implementations§
Source§impl SedaComponent
impl SedaComponent
pub fn new() -> Self
Sourcepub fn has_active_consumer(&self, endpoint_name: &str) -> bool
pub fn has_active_consumer(&self, endpoint_name: &str) -> bool
True when the named endpoint has at least one consumer that has
started and not yet stopped — the same signal the producer-side
no-active-consumers gate checks, so polling this predicate is a
side-effect-free readiness probe for senders that must not retry
(a retried pipeline re-executes steps with side effects, such as
route-interception divert copies). Singular: one endpoint name,
unlike the per-endpoint-state has_active_consumers check.
Unknown endpoint names report false.
Trait Implementations§
Source§impl Clone for SedaComponent
impl Clone for SedaComponent
Source§fn clone(&self) -> SedaComponent
fn clone(&self) -> SedaComponent
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 moreSource§impl Component for SedaComponent
impl Component for SedaComponent
Source§fn metadata(&self) -> ComponentMetadata
fn metadata(&self) -> ComponentMetadata
Declare this component’s metadata (URI options, capabilities, version). Read more
Source§fn create_endpoint(
&self,
uri: &str,
_ctx: &dyn ComponentContext,
) -> Result<Box<dyn Endpoint>, CamelError>
fn create_endpoint( &self, uri: &str, _ctx: &dyn ComponentContext, ) -> Result<Box<dyn Endpoint>, CamelError>
Create an endpoint from a URI string.
Auto Trait Implementations§
impl Freeze for SedaComponent
impl RefUnwindSafe for SedaComponent
impl Send for SedaComponent
impl Sync for SedaComponent
impl Unpin for SedaComponent
impl UnsafeUnpin for SedaComponent
impl UnwindSafe for SedaComponent
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