ObjectPool<T>

Class in Arbor.Pool / Inherits from: object
Implements interfaces: System.IDisposable, IObjectPool<T>

Description

Pool class type instances.

Type Parameters

Type Parameter Name Description Type Constraints
T Pool type
  • class

Constructors

Description
ObjectPool Creates a new ObjectPool instance.

Properties

Property Name Description
CountActive Number of instances in use retrieved from this pool
CountAll Total number of instances generated from this pool
CountInactive Number of unused instances stored in this pool

Methods

Method Name Description
Clear Clear all pooled instances.
Dispose Discard the pool.
Get Fetch an instance from the pool.
Release Return the instance to the pool.