Show / Hide Table of Contents

Interface IGenericObjectPool<T>

A generic object pool interface

Namespace: MESL.SqlRace.Domain.Infrastructure.Publish
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IGenericObjectPool<T>
    where T : struct, ValueType
Type Parameters
Name Description
T

Methods

Count()

Number of totale elements

Declaration
int Count()
Returns
Type Description
System.Int32

LohCount()

Number of elements in Loh

Declaration
int LohCount()
Returns
Type Description
System.Int32

Release(T[])

Release the object back to the pool

Declaration
void Release(T[] item)
Parameters
Type Name Description
T[] item

Rent(Int32)

Rent an object from the pool

Declaration
T[] Rent(int maxLength)
Parameters
Type Name Description
System.Int32 maxLength
Returns
Type Description
T[]
Back to top Generated by DocFX