pub struct ControllerServiceClient<T> { /* private fields */ }
Expand description
Producer, Consumer and Admin APIs supported by Stream Controller Service
Implementations§
Source§impl<T> ControllerServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ControllerServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ControllerServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_gzip(self) -> Self
pub fn send_gzip(self) -> Self
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_gzip(self) -> Self
pub fn accept_gzip(self) -> Self
Enable decompressing responses with gzip
.
pub async fn get_controller_server_list( &mut self, request: impl IntoRequest<ServerRequest>, ) -> Result<Response<ServerResponse>, Status>
pub async fn create_stream( &mut self, request: impl IntoRequest<StreamConfig>, ) -> Result<Response<CreateStreamStatus>, Status>
pub async fn update_stream( &mut self, request: impl IntoRequest<StreamConfig>, ) -> Result<Response<UpdateStreamStatus>, Status>
pub async fn truncate_stream( &mut self, request: impl IntoRequest<StreamCut>, ) -> Result<Response<UpdateStreamStatus>, Status>
pub async fn seal_stream( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<UpdateStreamStatus>, Status>
pub async fn delete_stream( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<DeleteStreamStatus>, Status>
pub async fn get_current_segments( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<SegmentRanges>, Status>
pub async fn get_epoch_segments( &mut self, request: impl IntoRequest<GetEpochSegmentsRequest>, ) -> Result<Response<SegmentRanges>, Status>
pub async fn get_segments( &mut self, request: impl IntoRequest<GetSegmentsRequest>, ) -> Result<Response<SegmentsAtTime>, Status>
Sourcepub async fn get_segments_immediatly_following(
&mut self,
request: impl IntoRequest<SegmentId>,
) -> Result<Response<SuccessorResponse>, Status>
pub async fn get_segments_immediatly_following( &mut self, request: impl IntoRequest<SegmentId>, ) -> Result<Response<SuccessorResponse>, Status>
Deprecated RPC: https://github.com/pravega/pravega/issues/3760
pub async fn get_segments_immediately_following( &mut self, request: impl IntoRequest<SegmentId>, ) -> Result<Response<SuccessorResponse>, Status>
pub async fn get_segments_between( &mut self, request: impl IntoRequest<StreamCutRange>, ) -> Result<Response<StreamCutRangeResponse>, Status>
pub async fn scale( &mut self, request: impl IntoRequest<ScaleRequest>, ) -> Result<Response<ScaleResponse>, Status>
pub async fn check_scale( &mut self, request: impl IntoRequest<ScaleStatusRequest>, ) -> Result<Response<ScaleStatusResponse>, Status>
pub async fn get_uri( &mut self, request: impl IntoRequest<SegmentId>, ) -> Result<Response<NodeUri>, Status>
pub async fn is_segment_valid( &mut self, request: impl IntoRequest<SegmentId>, ) -> Result<Response<SegmentValidityResponse>, Status>
pub async fn is_stream_cut_valid( &mut self, request: impl IntoRequest<StreamCut>, ) -> Result<Response<StreamCutValidityResponse>, Status>
pub async fn create_transaction( &mut self, request: impl IntoRequest<CreateTxnRequest>, ) -> Result<Response<CreateTxnResponse>, Status>
pub async fn commit_transaction( &mut self, request: impl IntoRequest<TxnRequest>, ) -> Result<Response<TxnStatus>, Status>
pub async fn abort_transaction( &mut self, request: impl IntoRequest<TxnRequest>, ) -> Result<Response<TxnStatus>, Status>
pub async fn ping_transaction( &mut self, request: impl IntoRequest<PingTxnRequest>, ) -> Result<Response<PingTxnStatus>, Status>
pub async fn check_transaction_state( &mut self, request: impl IntoRequest<TxnRequest>, ) -> Result<Response<TxnState>, Status>
pub async fn create_scope( &mut self, request: impl IntoRequest<ScopeInfo>, ) -> Result<Response<CreateScopeStatus>, Status>
pub async fn list_scopes( &mut self, request: impl IntoRequest<ScopesRequest>, ) -> Result<Response<ScopesResponse>, Status>
pub async fn check_scope_exists( &mut self, request: impl IntoRequest<ScopeInfo>, ) -> Result<Response<ExistsResponse>, Status>
pub async fn check_stream_exists( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<ExistsResponse>, Status>
pub async fn list_streams_in_scope( &mut self, request: impl IntoRequest<StreamsInScopeRequest>, ) -> Result<Response<StreamsInScopeResponse>, Status>
pub async fn delete_scope( &mut self, request: impl IntoRequest<ScopeInfo>, ) -> Result<Response<DeleteScopeStatus>, Status>
pub async fn get_delegation_token( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<DelegationToken>, Status>
pub async fn remove_writer( &mut self, request: impl IntoRequest<RemoveWriterRequest>, ) -> Result<Response<RemoveWriterResponse>, Status>
pub async fn note_timestamp_from_writer( &mut self, request: impl IntoRequest<TimestampFromWriter>, ) -> Result<Response<TimestampResponse>, Status>
pub async fn create_key_value_table( &mut self, request: impl IntoRequest<KeyValueTableConfig>, ) -> Result<Response<CreateKeyValueTableStatus>, Status>
pub async fn get_current_segments_key_value_table( &mut self, request: impl IntoRequest<KeyValueTableInfo>, ) -> Result<Response<SegmentRanges>, Status>
pub async fn list_key_value_tables_in_scope( &mut self, request: impl IntoRequest<KvTablesInScopeRequest>, ) -> Result<Response<KvTablesInScopeResponse>, Status>
pub async fn delete_key_value_table( &mut self, request: impl IntoRequest<KeyValueTableInfo>, ) -> Result<Response<DeleteKvTableStatus>, Status>
pub async fn list_subscribers( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<SubscribersResponse>, Status>
pub async fn update_subscriber_stream_cut( &mut self, request: impl IntoRequest<SubscriberStreamCut>, ) -> Result<Response<UpdateSubscriberStatus>, Status>
pub async fn create_reader_group( &mut self, request: impl IntoRequest<ReaderGroupConfiguration>, ) -> Result<Response<CreateReaderGroupResponse>, Status>
pub async fn get_reader_group_config( &mut self, request: impl IntoRequest<ReaderGroupInfo>, ) -> Result<Response<ReaderGroupConfigResponse>, Status>
pub async fn delete_reader_group( &mut self, request: impl IntoRequest<ReaderGroupInfo>, ) -> Result<Response<DeleteReaderGroupStatus>, Status>
pub async fn update_reader_group( &mut self, request: impl IntoRequest<ReaderGroupConfiguration>, ) -> Result<Response<UpdateReaderGroupResponse>, Status>
pub async fn get_stream_configuration( &mut self, request: impl IntoRequest<StreamInfo>, ) -> Result<Response<StreamConfig>, Status>
pub async fn list_streams_in_scope_for_tag( &mut self, request: impl IntoRequest<StreamsInScopeWithTagRequest>, ) -> Result<Response<StreamsInScopeResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for ControllerServiceClient<T>
impl<T: Clone> Clone for ControllerServiceClient<T>
Source§fn clone(&self) -> ControllerServiceClient<T>
fn clone(&self) -> ControllerServiceClient<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for ControllerServiceClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for ControllerServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ControllerServiceClient<T>where
T: Send,
impl<T> Sync for ControllerServiceClient<T>where
T: Sync,
impl<T> Unpin for ControllerServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ControllerServiceClient<T>where
T: UnwindSafe,
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> 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