pub trait SegmentClient {
// Required method
fn delete_segments<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
stream_id: &'life1 Identifier,
topic_id: &'life2 Identifier,
partition_id: u32,
segments_count: u32,
) -> Pin<Box<dyn Future<Output = Result<(), IggyError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
This trait defines the methods to interact with the partition module.
Required Methods§
Sourcefn delete_segments<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
stream_id: &'life1 Identifier,
topic_id: &'life2 Identifier,
partition_id: u32,
segments_count: u32,
) -> Pin<Box<dyn Future<Output = Result<(), IggyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_segments<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
stream_id: &'life1 Identifier,
topic_id: &'life2 Identifier,
partition_id: u32,
segments_count: u32,
) -> Pin<Box<dyn Future<Output = Result<(), IggyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Delete last N segments for a partition by unique ID or name.
For example, given a partition with 5 segments, if you delete 2 segments, the topic will have 3 segments left (from 1 to 3).
Authentication is required, and the permission to manage the segments.