Struct pravega_client::event::reader_group::ReaderGroupConfig
source · pub struct ReaderGroupConfig { /* private fields */ }
Expand description
Specifies the ReaderGroupConfig. ReaderGroupConfig::default() ensures the group refresh interval is set to 3 seconds.
Implementations§
source§impl ReaderGroupConfig
impl ReaderGroupConfig
sourcepub fn new(group_refresh_time_millis: u64) -> Self
pub fn new(group_refresh_time_millis: u64) -> Self
Create a new ReaderGroupConfig by specifying the group refresh interval in millis.
sourcepub fn to_bytes(&self) -> Result<Vec<u8>, SerdeError>
pub fn to_bytes(&self) -> Result<Vec<u8>, SerdeError>
Method to serialize the ReaderGroupConfig into bytes.
sourcepub fn from_bytes(input: &[u8]) -> Result<Self, SerdeError>
pub fn from_bytes(input: &[u8]) -> Result<Self, SerdeError>
Method to de-serialize the ReaderGroupConfig object from bytes.
sourcepub fn get_streams(&self) -> Vec<ScopedStream>
pub fn get_streams(&self) -> Vec<ScopedStream>
Method to obtain the streams in a ReaderGroupConfig.
sourcepub fn get_start_stream_cuts(&self) -> HashMap<ScopedStream, StreamCutVersioned>
pub fn get_start_stream_cuts(&self) -> HashMap<ScopedStream, StreamCutVersioned>
Method to obtain the streams and start Streamcut in a ReaderGroupConfig.
Trait Implementations§
source§impl Clone for ReaderGroupConfig
impl Clone for ReaderGroupConfig
source§fn clone(&self) -> ReaderGroupConfig
fn clone(&self) -> ReaderGroupConfig
Returns a copy 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 ReaderGroupConfig
impl Debug for ReaderGroupConfig
source§impl<'de> Deserialize<'de> for ReaderGroupConfig
impl<'de> Deserialize<'de> for ReaderGroupConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ReaderGroupConfig
impl PartialEq for ReaderGroupConfig
source§fn eq(&self, other: &ReaderGroupConfig) -> bool
fn eq(&self, other: &ReaderGroupConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReaderGroupConfig
impl Serialize for ReaderGroupConfig
impl StructuralPartialEq for ReaderGroupConfig
Auto Trait Implementations§
impl Freeze for ReaderGroupConfig
impl RefUnwindSafe for ReaderGroupConfig
impl Send for ReaderGroupConfig
impl Sync for ReaderGroupConfig
impl Unpin for ReaderGroupConfig
impl UnwindSafe for ReaderGroupConfig
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