The Pool < (Of < ( <' TInterface > ) > ) > type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
|
Create < (Of < <' ( TTarget > ) > > ) (Int32) |
Creates a pool with the specified number of
Instance objects.
|
|
|
Create < (Of < <' ( TTarget > ) > > ) (InstanceStartInfo, Int32) |
Creates a pool with the specified options for
each Instance and the number of Instance objects.
|
|
|
Create < (Of < <' ( TTarget > ) > > ) (InstanceStartInfo, Template, Int32) |
Creates a pool with the specified options for
each Instance, the worker process and the number of Instance
objects in the pool.
|
|
|
Dispose |
Dispose of all Instance objects created by the
pool.
|
Properties
| Name | Description | |
|---|---|---|
|
|
AutoRetryCount |
If any calls to the Target fails with an
exception, the call will be automatically retried this number of
times.
|
|
|
IdleTimeLimit |
Number of milliseconds after which idle
Instances will be shut down. Null specifies that no Instances will
be shut down for being idle.
|
|
|
RecycleInterval |
The interval number of milliseconds where
Instances will be recycled. Null indicates that no regular
recycling will occur.
|
|
|
Sequential |
Whether function calls to the same worker
process needs to be serialized. Set this to true if TTarget refers
to a class that is not reentrant.
|
|
|
Target |
Gets the proxy object that implements
TInterface. Calls to this object will be executed on a pooled
worker process and the return value will be passed back.
|
|
|
Timeout |
Timeout for operations in milliseconds. Null
indicates no timeout value (call will wait for result
indefinitely).
|