pub struct DeduplicationManager { /* private fields */ }Expand description
Message deduplication manager
Implementations§
Source§impl DeduplicationManager
impl DeduplicationManager
pub fn new(config: DeduplicationConfig) -> Self
Sourcepub fn check_duplicate(
&self,
message: &DeduplicatedMessage,
) -> Result<DeduplicationResult>
pub fn check_duplicate( &self, message: &DeduplicatedMessage, ) -> Result<DeduplicationResult>
Check if message is duplicate
Sourcepub fn mark_processed(&self, message: &DeduplicatedMessage) -> Result<()>
pub fn mark_processed(&self, message: &DeduplicatedMessage) -> Result<()>
Manually mark a message as processed (for external dedup stores)
Sourcepub fn cache_stats(&self) -> DeduplicationStats
pub fn cache_stats(&self) -> DeduplicationStats
Get cache statistics
Sourcepub fn cleanup_expired(&self) -> usize
pub fn cleanup_expired(&self) -> usize
Clear expired entries from cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeduplicationManager
impl RefUnwindSafe for DeduplicationManager
impl Send for DeduplicationManager
impl Sync for DeduplicationManager
impl Unpin for DeduplicationManager
impl UnwindSafe for DeduplicationManager
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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