|
| HttpServerFactory () |
| Constructs a new HttpServerFactory with no limit on the total number of servers that can be in play.
|
| HttpServerFactory (int maxItems) |
| Constructs a new HttpServerFactory with the provided limit on servers which can be in play.
|
| Pool (Func< T > factory) |
| Creates the pool with a factory for the items.
|
| Pool (Func< T > factory, int maxItems) |
| Creates the pool with a factory for the items.
|
| Pool (Func< T > factory, Action< T > onRelease) |
| Creates the pool with the provided factory and an action to run on releasing the item.
|
| Pool (Func< T > factory, Action< T > onRelease, int maxItems) |
| Creates the pool with the provided factory and an action to run on releasing the item.
|
IPoolItem< T > | Take () |
| Attempt to take an item from the pool. If possible and required, an item will be created for you. If the pool is full and no item can be made available, this will a pool item with a null instance.- Returns
|
IPoolItem< T > | Take (int maxWaitMilliseconds) |
| Attempt to take an item from the pool, with a max wait in ms when the pool is already full and you need to wait on something else to release an instance. If no instance can be found in time, then this will return a PoolItem with a default instance.- Parameters
-
- Returns
|
IPoolItem< T > | Borrow () |
| Attempt to take an item from the pool. If possible and required, an item will be created for you. If the pool is full and no item can be made available, this will a pool item with a null instance.
|
IPoolItem< T > | Borrow (int maxWaitMilliseconds) |
| Attempt to take an item from the pool, with a max wait in ms when the pool is already full and you need to wait on something else to release an instance. If no instance can be found in time, then this will return a PoolItem with a default instance.
|
void | Forget (IPoolItem< T > item) |
| Forget the item from the pool.- Parameters
-
|
void | Dispose () |
| Disposes of this pool and all items in the pool.
|