pub struct StreamingConfigV2 {
pub base: StreamingConfig,
pub backpressure: Option<BackpressureConfig>,
pub watermark: Option<WatermarkConfig>,
}Expand description
Extended streaming configuration combining the base config with v2 features.
Fields§
§base: StreamingConfigBase streaming configuration.
backpressure: Option<BackpressureConfig>Optional backpressure configuration.
watermark: Option<WatermarkConfig>Optional watermark configuration.
Implementations§
Source§impl StreamingConfigV2
impl StreamingConfigV2
Sourcepub fn new(base: StreamingConfig) -> Self
pub fn new(base: StreamingConfig) -> Self
Create a new StreamingConfigV2 wrapping the given base config.
Sourcepub fn with_backpressure(self, config: BackpressureConfig) -> Self
pub fn with_backpressure(self, config: BackpressureConfig) -> Self
Attach a backpressure configuration.
Sourcepub fn with_watermark(self, config: WatermarkConfig) -> Self
pub fn with_watermark(self, config: WatermarkConfig) -> Self
Attach a watermark configuration.
Sourcepub fn should_apply_backpressure(&self, current_buffered: usize) -> bool
pub fn should_apply_backpressure(&self, current_buffered: usize) -> bool
Returns true when backpressure should be applied for the given buffer level.
Sourcepub fn is_late_event(&self, event_time_ms: u64, watermark_ms: u64) -> bool
pub fn is_late_event(&self, event_time_ms: u64, watermark_ms: u64) -> bool
Returns true when the given event timestamp is late relative to the watermark.
Trait Implementations§
Source§impl Clone for StreamingConfigV2
impl Clone for StreamingConfigV2
Source§fn clone(&self) -> StreamingConfigV2
fn clone(&self) -> StreamingConfigV2
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamingConfigV2
impl Debug for StreamingConfigV2
Auto Trait Implementations§
impl Freeze for StreamingConfigV2
impl RefUnwindSafe for StreamingConfigV2
impl Send for StreamingConfigV2
impl Sync for StreamingConfigV2
impl Unpin for StreamingConfigV2
impl UnsafeUnpin for StreamingConfigV2
impl UnwindSafe for StreamingConfigV2
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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