pub struct StreamingEngineBuilder { /* private fields */ }Expand description
Builder for StreamingEngine with fluent API
Implementations§
Source§impl StreamingEngineBuilder
impl StreamingEngineBuilder
Sourcepub fn window_size(self, duration: StdDuration) -> Self
pub fn window_size(self, duration: StdDuration) -> Self
Set window size
Sourcepub fn slide_interval(self, duration: StdDuration) -> Self
pub fn slide_interval(self, duration: StdDuration) -> Self
Set slide interval (for sliding windows)
Sourcepub fn tumbling_windows(self) -> Self
pub fn tumbling_windows(self) -> Self
Use tumbling windows (no overlap)
Sourcepub fn max_buffer_size(self, size: usize) -> Self
pub fn max_buffer_size(self, size: usize) -> Self
Set max buffer size
Sourcepub fn batch_size(self, size: usize) -> Self
pub fn batch_size(self, size: usize) -> Self
Set batch size
Sourcepub fn max_concurrency(self, concurrency: usize) -> Self
pub fn max_concurrency(self, concurrency: usize) -> Self
Set max concurrency
Sourcepub fn detection_interval(self, interval: usize) -> Self
pub fn detection_interval(self, interval: usize) -> Self
Set detection interval
Sourcepub fn discovery_config(self, config: OptimizedConfig) -> Self
pub fn discovery_config(self, config: OptimizedConfig) -> Self
Set discovery config
Sourcepub fn build(self) -> StreamingEngine
pub fn build(self) -> StreamingEngine
Build the streaming engine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingEngineBuilder
impl RefUnwindSafe for StreamingEngineBuilder
impl Send for StreamingEngineBuilder
impl Sync for StreamingEngineBuilder
impl Unpin for StreamingEngineBuilder
impl UnwindSafe for StreamingEngineBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more