pub struct OptimizedCollectionConfig {
pub connection_timeout_ms: u64,
pub health_check_interval_ms: u64,
pub retry_interval_ms: u64,
pub max_retry_attempts: usize,
pub buffer_pool_config: LockFreeBufferPoolConfig,
pub pipeline_config: ZerocopyPipelineConfig,
pub enable_stats_cleanup: bool,
pub stats_cleanup_interval_ms: u64,
}Expand description
Configuration for the optimized collection manager
Fields§
§connection_timeout_ms: u64Exchange connection timeout in milliseconds
Controls how long to wait for an exchange connection to be established before timing out. Default is 30 seconds (30000ms).
health_check_interval_ms: u64Health check interval in milliseconds
Determines how frequently the system performs health checks on exchange connections to ensure they remain active. Default is 30 seconds (30000ms).
retry_interval_ms: u64Retry interval for failed connections in milliseconds
Specifies the delay between retry attempts when reconnecting to exchanges after connection failures. Default is 60 seconds (60000ms).
max_retry_attempts: usizeMaximum number of retry attempts
Limits the number of times the system will attempt to reconnect to an exchange before marking it as permanently failed. Default is 10.
buffer_pool_config: LockFreeBufferPoolConfigBuffer pool configuration for lock-free operations
Configures the lock-free buffer pool used for high-performance memory management during market data processing.
pipeline_config: ZerocopyPipelineConfigZero-copy pipeline configuration
Configures the zero-copy data pipeline for ultra-low-latency processing of market data streams without unnecessary allocations.
enable_stats_cleanup: boolEnable automatic cleanup of old statistics
When enabled, the system will periodically clean up old statistical data to prevent memory bloat. Default is true.
stats_cleanup_interval_ms: u64Statistics cleanup interval in milliseconds
Determines how frequently the system cleans up old statistical data when automatic cleanup is enabled. Default is 5 minutes (300000ms).
Trait Implementations§
Source§impl Clone for OptimizedCollectionConfig
impl Clone for OptimizedCollectionConfig
Source§fn clone(&self) -> OptimizedCollectionConfig
fn clone(&self) -> OptimizedCollectionConfig
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OptimizedCollectionConfig
impl Debug for OptimizedCollectionConfig
Source§impl Default for OptimizedCollectionConfig
Default configuration values for the optimized collection manager
impl Default for OptimizedCollectionConfig
Default configuration values for the optimized collection manager
Provides sensible defaults for high-frequency trading environments, with conservative timeouts and aggressive performance optimizations.