pub struct LiveOnlyBuilder { /* private fields */ }Expand description
Builder for LiveStreamingOnly mode.
Created by StreamConfigBuilder::live_only. Call LiveOnlyBuilder::build to finalize.
Implementations§
Source§impl LiveOnlyBuilder
impl LiveOnlyBuilder
Sourcepub fn enable_compression_for_ingestion(self, enable: bool) -> Self
pub fn enable_compression_for_ingestion(self, enable: bool) -> Self
Sets whether gzip compression is enabled for ingestion.
Sourcepub fn metrics_streaming_interval(self, interval: Option<Duration>) -> Self
pub fn metrics_streaming_interval(self, interval: Option<Duration>) -> Self
Sets the interval at which SiftStreamMetrics are
streamed to Sift. Defaults to DEFAULT_METRICS_STREAMING_INTERVAL. Pass None to disable.
Sourcepub fn ingestion_data_channel_capacity(self, capacity: usize) -> Self
pub fn ingestion_data_channel_capacity(self, capacity: usize) -> Self
Sets the capacity of the ingestion channel — the bounded queue between the caller and the gRPC ingestion task.
send awaits when this channel is full, applying backpressure
to the caller. Defaults to DATA_CHANNEL_CAPACITY.
Increase for high-throughput producers to absorb bursts; decrease to reduce memory usage
at the cost of earlier backpressure.
Sourcepub fn control_channel_capacity(self, capacity: usize) -> Self
pub fn control_channel_capacity(self, capacity: usize) -> Self
Sets the capacity of the control channel — the broadcast channel used to send internal signals such as shutdown.
Defaults to CONTROL_CHANNEL_CAPACITY.
Most users do not need to change this.
Sourcepub fn retry_policy(self, policy: RetryPolicy) -> Self
pub fn retry_policy(self, policy: RetryPolicy) -> Self
Sets the retry policy. Defaults to RetryPolicy::default.
Sourcepub async fn build(
self,
) -> Result<SiftStream<IngestionConfigEncoder, LiveStreamingOnly>>
pub async fn build( self, ) -> Result<SiftStream<IngestionConfigEncoder, LiveStreamingOnly>>
Performs setup and returns a SiftStream configured for LiveStreamingOnly.
Auto Trait Implementations§
impl Freeze for LiveOnlyBuilder
impl !RefUnwindSafe for LiveOnlyBuilder
impl Send for LiveOnlyBuilder
impl Sync for LiveOnlyBuilder
impl Unpin for LiveOnlyBuilder
impl UnsafeUnpin for LiveOnlyBuilder
impl !UnwindSafe for LiveOnlyBuilder
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> RetryExt for T
impl<T> RetryExt for T
Source§fn retrying(self, cfg: RetryConfig) -> Retrying<Self>
fn retrying(self, cfg: RetryConfig) -> Retrying<Self>
self in a Retrying adapter with the given configuration.