Class ConcurrentBucketsPool<T>
Inheritance
System.Object
ConcurrentBucketsPool<T>
Implements
IPool<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FixAntenna.Common.Pool
Assembly: FixAntenna.Common.dll
Syntax
public class ConcurrentBucketsPool<T> : IPool<T> where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
ConcurrentBucketsPool(Int32, Int32, Int32, IPoolableProvider<T>)
Declaration
protected ConcurrentBucketsPool(int numberOfBuckets, int initBucketSize, int maxBucketSize, IPoolableProvider<T> poolableProvider)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numberOfBuckets | |
System.Int32 | initBucketSize | |
System.Int32 | maxBucketSize | |
IPoolableProvider<T> | poolableProvider |
Methods
Clean()
Declaration
public virtual void Clean()
GetObject()
Declaration
public virtual T GetObject()
Returns
Type | Description |
---|---|
T |
GetObjectsCreated()
Declaration
public virtual int GetObjectsCreated()
Returns
Type | Description |
---|---|
System.Int32 |
ReturnObject(T)
Declaration
public virtual void ReturnObject(T object)
Parameters
Type | Name | Description |
---|---|---|
T | object |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()