pub struct CamelContextBuilder { /* private fields */ }Implementations§
Source§impl CamelContextBuilder
impl CamelContextBuilder
pub fn new() -> Self
pub fn registry(self, registry: Arc<Mutex<Registry>>) -> Self
pub fn languages(self, languages: SharedLanguageRegistry) -> Self
pub fn metrics(self, metrics: Arc<dyn MetricsCollector>) -> Self
Sourcepub fn leader_elector(self, elector: Arc<dyn LeaderElector>) -> Self
pub fn leader_elector(self, elector: Arc<dyn LeaderElector>) -> Self
Set a custom leader elector port.
Sourcepub fn readiness_gate(self, gate: Arc<dyn ReadinessGate>) -> Self
pub fn readiness_gate(self, gate: Arc<dyn ReadinessGate>) -> Self
Set a custom readiness gate port.
Sourcepub fn platform_identity(self, identity: PlatformIdentity) -> Self
pub fn platform_identity(self, identity: PlatformIdentity) -> Self
Set a custom platform identity.
pub fn supervision(self, config: SupervisionConfig) -> Self
pub fn runtime_store(self, store: InMemoryRuntimeStore) -> Self
pub fn shutdown_timeout(self, timeout: Duration) -> Self
pub async fn build(self) -> Result<CamelContext, CamelError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CamelContextBuilder
impl !RefUnwindSafe for CamelContextBuilder
impl Send for CamelContextBuilder
impl Sync for CamelContextBuilder
impl Unpin for CamelContextBuilder
impl UnsafeUnpin for CamelContextBuilder
impl !UnwindSafe for CamelContextBuilder
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