Class CoherenceObjectPool<T>
- Namespace
- Coherence.Toolkit
- Assembly
- Coherence.Toolkit.dll
public class CoherenceObjectPool<T> where T : class
Type Parameters
T
- Inheritance
-
CoherenceObjectPool<T>
Constructors
public CoherenceObjectPool(Func<T> createFunc, Func<T, bool> actionOnGet = null, Action<T> actionOnRelease = null, Action<T> actionOnDestroy = null, bool collectionCheck = true, int maxSize = 10000)
Parameters
createFunc
Func<T>
actionOnGet
Func<T, bool>
actionOnRelease
Action<T>
actionOnDestroy
Action<T>
collectionCheck
bool
maxSize
int
Properties
public int CountActive { get; }
Property Value
- int
public int CountAll { get; }
Property Value
- int
public int CountInactive { get; }
Property Value
- int
Methods
public void ForceGet(T instance)
Parameters
instance
T
Returns
- T
public void Release(T element)
Parameters
element
T