Struct pravega_client::client_factory::ClientFactoryAsync
source · pub struct ClientFactoryAsync { /* private fields */ }
Implementations§
source§impl ClientFactoryAsync
impl ClientFactoryAsync
pub fn new(config: ClientConfig, handle: Handle) -> Self
pub fn config(&self) -> &ClientConfig
pub fn create_event_writer(&self, stream: ScopedStream) -> EventWriter
pub async fn create_stream_meta_client( &self, stream: ScopedStream ) -> MetaClient
sourcepub async fn create_reader_group(
&self,
reader_group_name: String,
stream: ScopedStream
) -> ReaderGroup
pub async fn create_reader_group( &self, reader_group_name: String, stream: ScopedStream ) -> ReaderGroup
Create a ReaderGroup with the specified name to read from the specified Stream. The readers will read from the HEAD/beginning of the Stream.
sourcepub async fn create_reader_group_with_config(
&self,
scope: Scope,
reader_group_name: String,
rg_config: ReaderGroupConfig
) -> ReaderGroup
pub async fn create_reader_group_with_config( &self, scope: Scope, reader_group_name: String, rg_config: ReaderGroupConfig ) -> ReaderGroup
Create a ReaderGroup with the streams configured in the ReaderGroupConfig.
sourcepub async fn delete_reader_group(
&self,
scope: Scope,
reader_group_name: String
) -> Result<(), TableError>
pub async fn delete_reader_group( &self, scope: Scope, reader_group_name: String ) -> Result<(), TableError>
Delete a ReaderGroup given for a given scope.
pub async fn create_transactional_event_writer( &self, stream: ScopedStream, writer_id: WriterId ) -> TransactionalEventWriter
pub async fn create_byte_writer(&self, stream: ScopedStream) -> ByteWriter
pub async fn create_byte_reader(&self, stream: ScopedStream) -> ByteReader
pub async fn create_index_writer<T: Fields + PartialOrd + PartialEq + Debug>( &self, stream: ScopedStream ) -> IndexWriter<T>
pub async fn create_index_reader(&self, stream: ScopedStream) -> IndexReader
pub async fn create_table(&self, scope: Scope, name: String) -> Table
pub async fn create_synchronizer( &self, scope: Scope, name: String ) -> Synchronizer
pub fn controller_client(&self) -> &dyn ControllerClient
pub fn runtime_handle(&self) -> Handle
Trait Implementations§
source§impl Clone for ClientFactoryAsync
impl Clone for ClientFactoryAsync
source§fn clone(&self) -> ClientFactoryAsync
fn clone(&self) -> ClientFactoryAsync
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 moreAuto Trait Implementations§
impl Freeze for ClientFactoryAsync
impl !RefUnwindSafe for ClientFactoryAsync
impl Send for ClientFactoryAsync
impl Sync for ClientFactoryAsync
impl Unpin for ClientFactoryAsync
impl !UnwindSafe for ClientFactoryAsync
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