pub struct ReaderGroupConfigBuilder { /* private fields */ }
Expand description
Builder used to build the ReaderGroup Config. The reader group refresh time is 3 seconds.
Implementations§
source§impl ReaderGroupConfigBuilder
impl ReaderGroupConfigBuilder
sourcepub fn set_group_refresh_time(
&mut self,
group_refresh_time_millis: u64
) -> &mut Self
pub fn set_group_refresh_time( &mut self, group_refresh_time_millis: u64 ) -> &mut Self
Set reader group refresh time.
sourcepub fn add_stream(&mut self, stream: ScopedStream) -> &mut Self
pub fn add_stream(&mut self, stream: ScopedStream) -> &mut Self
Add a Pravega Stream to the reader group which will be read from Current HEAD/start of the stream.
sourcepub fn read_from_head_of_stream(&mut self, stream: ScopedStream) -> &mut Self
pub fn read_from_head_of_stream(&mut self, stream: ScopedStream) -> &mut Self
Add a Pravega Stream to the reader group which will be read from Current HEAD/start of the stream.
sourcepub fn read_from_tail_of_stream(&mut self, stream: ScopedStream) -> &mut Self
pub fn read_from_tail_of_stream(&mut self, stream: ScopedStream) -> &mut Self
Add a Pravega Stream to the reader group which will be read from Current TAIL/end of the stream.
sourcepub fn read_from_stream(
&mut self,
stream: ScopedStream,
stream_cut: StreamCutVersioned
) -> &mut Self
pub fn read_from_stream( &mut self, stream: ScopedStream, stream_cut: StreamCutVersioned ) -> &mut Self
Add a Pravega Stream to the reader group which will be read from the provided StreamCut.
sourcepub fn build(&self) -> ReaderGroupConfig
pub fn build(&self) -> ReaderGroupConfig
Build a ReaderGroupConfig object. This method panics for invalid configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReaderGroupConfigBuilder
impl RefUnwindSafe for ReaderGroupConfigBuilder
impl Send for ReaderGroupConfigBuilder
impl Sync for ReaderGroupConfigBuilder
impl Unpin for ReaderGroupConfigBuilder
impl UnwindSafe for ReaderGroupConfigBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Wrap the input message
T
in a tonic::Request