Abstract base class for IObjectPoolFactory implementations.
abstract class
|
ObjectPoolFactory
|
with
|
<T>
|
as
|
class
|
implements
|
IObjectPoolFactory<T>
|
||||
base of
|
DefaultObjectPoolFactory
|
Wraps the given ObjectPoolDelegate in an IObjectPoolFactory object.
public
static
method
|
Wrap
(ObjectPoolDelegate<T> method)
|
||
type
|
IObjectPoolFactory<T>
|
||
params
|
method
|
[not-null]
|
The delegate method to wrap. |
returns
|
|
The wrapping object. factory. |
The given object is no longer pooled and must be deleted
public
virtual
method
|
Delete
([Owner]
T obj)
|
||
params
|
obj
|
[not-null]
|
The object. |
implements
|
IObjectPoolFactory.Delete
|
Creates a new pooled object.
[OwnerReturn]
|
||||
public
abstract
method
|
New
()
|
|||
type
|
T
|
|||
returns
|
|
The newly created object. | ||
implements
|
IObjectPoolFactory.New
|
A pooled object is about to be returned to the pool.
public
virtual
method
|
Return
(T obj)
|
||
params
|
obj
|
[not-null]
|
The object that is returned to the pool. |
implements
|
IObjectPoolFactory.Return
|
A pooled object is about to be used again.
public
virtual
method
|
Use
(T obj)
|
||
params
|
obj
|
[not-null]
|
The object that is used again. |
implements
|
IObjectPoolFactory.Use
|