pub struct OptimizedCollectionManager { /* private fields */ }Expand description
Optimized collection manager with lock-free optimizations
Implementations§
Source§impl OptimizedCollectionManager
impl OptimizedCollectionManager
Sourcepub async fn new(
config: OptimizedCollectionConfig,
storage_manager: Arc<StorageManager>,
) -> Result<Self>
pub async fn new( config: OptimizedCollectionConfig, storage_manager: Arc<StorageManager>, ) -> Result<Self>
Create a new optimized collection manager
Sourcepub async fn start_collection(
&mut self,
exchange_filter: Option<Vec<SmartString>>,
symbol_filter: Option<Vec<SmartString>>,
event_sender: Sender<MarketDataEvent>,
) -> Result<()>
pub async fn start_collection( &mut self, exchange_filter: Option<Vec<SmartString>>, symbol_filter: Option<Vec<SmartString>>, event_sender: Sender<MarketDataEvent>, ) -> Result<()>
Start optimized collection with lock-free coordination
Sourcepub fn get_comprehensive_stats(&self) -> ComprehensiveStats
pub fn get_comprehensive_stats(&self) -> ComprehensiveStats
Get comprehensive statistics (mostly lock-free reads)
Sourcepub fn record_hf_event(&self, exchange: &str, bytes: u64, latency_nanos: u64)
pub fn record_hf_event(&self, exchange: &str, bytes: u64, latency_nanos: u64)
Record a high-frequency event (ultra-fast path)
Sourcepub fn request_shutdown(&self)
pub fn request_shutdown(&self)
Request shutdown (lock-free)
Sourcepub fn is_shutdown_requested(&self) -> bool
pub fn is_shutdown_requested(&self) -> bool
Check if shutdown was requested (lock-free)
Trait Implementations§
impl Send for OptimizedCollectionManager
impl Sync for OptimizedCollectionManager
Auto Trait Implementations§
impl Freeze for OptimizedCollectionManager
impl !RefUnwindSafe for OptimizedCollectionManager
impl Unpin for OptimizedCollectionManager
impl !UnwindSafe for OptimizedCollectionManager
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