ActiveConnectionTracker<'T> Type

Tracks connections currently in use (not in pool)

Constructors

Constructor Description

ActiveConnectionTracker()

Full Usage: ActiveConnectionTracker()

Returns: ActiveConnectionTracker<'T>
Returns: ActiveConnectionTracker<'T>

Instance members

Instance member Description

this.ActiveConnectionCount

Full Usage: this.ActiveConnectionCount

Returns: int

Get count of active connections

Returns: int

this.GetActiveConnections

Full Usage: this.GetActiveConnections

Returns: ActiveConnection<'T> list

Get all currently active connections

Returns: ActiveConnection<'T> list

this.GetStuckConnections

Full Usage: this.GetStuckConnections

Parameters:
    maxAgeSeconds : int

Returns: ActiveConnection<'T> list

Get connections that have exceeded max age (potential hangers)

maxAgeSeconds : int
Returns: ActiveConnection<'T> list

this.TrackConnection

Full Usage: this.TrackConnection

Parameters:
    connection : 'T

Register a connection as active (just popped from pool)

connection : 'T

this.UntrackConnection

Full Usage: this.UntrackConnection

Parameters:
    connection : 'T

Unregister a connection (returned to pool or closed)

connection : 'T