ObjectPoolBase

Description

abstract class Tinman.Core.System.ObjectPoolBase

Derived from

Disposable abstract
IObjectPoolBase

Extended by

ObjectPool

Non-generic base class for ObjectPool.

See also

ObjectPoolUtil

Public / Attributes

Limit​Count


public attribute LimitCount → (get,set)

value : int32

[>=0]
The limit or 0 if unlimited.

The limit for the maximum number of objects that may be present in the pool.

Limit​Memory


public attribute LimitMemory → (get,set)

value : int64

[>=0]
The limit in bytes or 0 if unlimited.

The limit for the maximum amount of memory consumed by the objects in the pool.

Protected / Constructors

Object​Pool​Base


protected constructor ObjectPoolBase → (4)

name in : string

The name of this object pool.

maximumCount in : int32

Maximum number of pooled objects to hold. Set to 0 to disable.

maximumMemory in : int32

Maximum memory to hold with pooled objects (estimated). Set to 0 to disable.

monitor in : Monitor own

The monitor object to use or null.

Creates a new instance of ObjectPool.

Protected / Attributes

stats


protected attribute stats → (ObjectPoolStatsBuilder)

The helper for building statistic values.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.