Base interface for classes that create objects for a pool.
interface
|
IObjectPoolFactory
|
with
|
<T>
|
||
base of
|
ObjectPoolFactory
|
The given object is no longer pooled and must be deleted
method
|
Delete
([Owner]
T obj)
|
||
params
|
obj
|
[not-null]
|
The object. |
Creates a new pooled object.
[OwnerReturn]
|
||||
method
|
New
()
|
|||
type
|
T
|
|||
returns
|
|
The newly created object. |
A pooled object is about to be returned to the pool.
method
|
Return
(T obj)
|
||
params
|
obj
|
[not-null]
|
The object that is returned to the pool. |
A pooled object is about to be used again.
method
|
Use
(T obj)
|
||
params
|
obj
|
[not-null]
|
The object that is used again. |