|
Stack | instancesAvailable = new Stack () |
| Stack of instances still in the Pool.
|
|
HashSet< object > | instancesInUse = new HashSet<object> () |
| A HashSet of the objects checked out of the Pool.
|
|
int | _instanceCount |
|
|
IInstanceProvider | instanceProvider [get, set] |
|
virtual object | value [get] |
|
virtual bool | uniqueValues [get, set] |
|
virtual Enum | constraint [get, set] |
|
System.Type | poolType [get, set] |
| The object Type of the first object added to the pool. More...
|
|
int | instanceCount [get] |
|
virtual int | available [get] |
|
virtual int | size [get, set] |
|
virtual PoolOverflowBehavior | overflowBehavior [get, set] |
|
virtual PoolInflationType | inflationType [get, set] |
|
bool | retain [get, set] |
|
IInstanceProvider | instanceProvider [get, set] |
| A class that provides instances to the pool when it needs them. More...
|
|
Type | poolType [get, set] |
| The object Type of the first object added to the pool. More...
|
|
int | available [get] |
| Returns the count of non-committed instances More...
|
|
int | size [get, set] |
| Gets or sets the size of the pool. More...
|
|
int | instanceCount [get] |
| Returns the total number of instances currently managed by this pool. More...
|
|
PoolOverflowBehavior | overflowBehavior [get, set] |
| Gets or sets the overflow behavior of this pool. More...
|
|
PoolInflationType | inflationType [get, set] |
| Gets or sets the type of inflation for infinite-sized pools. More...
|
|
object | value [get] |
| Retrieve the value of this List. More...
|
|
bool | retain [get] |
| Is this instance retained? More...
|
|
virtual void strange.extensions.pool.impl.Pool.Clean |
( |
) | |
|
|
inlinevirtual |
virtual object strange.extensions.pool.impl.Pool.GetInstance |
( |
) | |
|
|
inlinevirtual |
void strange.extensions.pool.impl.Pool.Release |
( |
) | |
|
|
inline |
virtual void strange.extensions.pool.impl.Pool.removeInstance |
( |
object |
value) | |
|
|
inlineprotectedvirtual |
Permanently removes an instance from the Pool
In the event that the removed Instance is in use, it is removed from instancesInUse. Otherwise, it is presumed inactive, and the next available object is popped from instancesAvailable.
- Parameters
-
value | An instance to remove permanently from the Pool. |
void strange.extensions.pool.impl.Pool.Restore |
( |
) | |
|
|
inline |
void strange.extensions.pool.impl.Pool.Retain |
( |
) | |
|
|
inline |
virtual void strange.extensions.pool.impl.Pool.ReturnInstance |
( |
object |
value) | |
|
|
inlinevirtual |
Returns an instance to the pool.
If the instance being released implements IPoolable, the Release() method will be called.
- Parameters
-
value | The instance to be return to the pool. |
Implements strange.extensions.pool.api.IPool.
System.Type strange.extensions.pool.impl.Pool.poolType |
|
getset |
The object Type of the first object added to the pool.
Pool objects must be of the same concrete type. This property enforces that requirement.
The documentation for this class was generated from the following file:
- StrangeIoC/scripts/strange/extensions/pool/impl/Pool.cs