ConcurrentPool<'T> Type

Constructors

Constructor Description

ConcurrentPool()

Full Usage: ConcurrentPool()

Returns: ConcurrentPool<'T>
Returns: ConcurrentPool<'T>

Instance members

Instance member Description

this.CurrentSize

Full Usage: this.CurrentSize

Returns: int
Returns: int

this.HealthCheckEnabled

Full Usage: this.HealthCheckEnabled

this.HealthCheckIntervalMs

Full Usage: this.HealthCheckIntervalMs

this.HealthCheckTask

Full Usage: this.HealthCheckTask

this.Iterate

Full Usage: this.Iterate

Parameters:
    action : 'T -> unit

Iterate over all objects currently in the pool Each object is temporarily removed during iteration and returned afterward

action : 'T -> unit

this.MaxSize

Full Usage: this.MaxSize

this.ObjectGenerator

Full Usage: this.ObjectGenerator

this.OnConnectionAcquired

Full Usage: this.OnConnectionAcquired

this.OnConnectionReset

Full Usage: this.OnConnectionReset

this.OnConnectionReturned

Full Usage: this.OnConnectionReturned

this.Pop

Full Usage: this.Pop

Returns: 'T
Returns: 'T

this.Push

Full Usage: this.Push

Parameters:
    item : 'T

item : 'T

this.ReuseRate

Full Usage: this.ReuseRate

Returns: float
Returns: float

this.TotalCreated

Full Usage: this.TotalCreated

Returns: int64
Returns: int64

this.TotalReturned

Full Usage: this.TotalReturned

Returns: int64
Returns: int64

this.TotalReused

Full Usage: this.TotalReused

Returns: int64
Returns: int64

this.TryRemove

Full Usage: this.TryRemove

Parameters:
    predicate : 'T -> bool

Returns: int

Try to remove an unhealthy item from the pool permanently Returns true if item was found and removed

predicate : 'T -> bool
Returns: int