ConnectionManager

Type Alias ConnectionManager 

Source
pub type ConnectionManager = ConnectionPool;
Expand description

Connection manager (alias for ConnectionPool)

This is the main connection management structure, providing connection pooling with health monitoring and automatic cleanup.

Aliased Type§

pub struct ConnectionManager {
    MaxConnections: usize,
    ConnectionTimeout: Duration,
    Semaphore: Arc<Semaphore>,
    ActiveConnections: Arc<Mutex<HashMap<String, ConnectionHandle>>>,
    HealthChecker: Arc<Mutex<HealthChecker>>,
}

Fields§

§MaxConnections: usize

Maximum number of concurrent connections allowed

§ConnectionTimeout: Duration

Timeout for acquiring a connection from the pool

§Semaphore: Arc<Semaphore>

Semaphore to limit concurrent connections

§ActiveConnections: Arc<Mutex<HashMap<String, ConnectionHandle>>>

Map of active connections by ID

§HealthChecker: Arc<Mutex<HealthChecker>>

Health checker for monitoring connection health