 | JCOBridgeObjectPoolT Constructor |
Initialises a new pool instance.
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntaxpublic JCOBridgeObjectPool(
Func<T> factory,
int localMaxSize = 64,
int sharedMaxSize = 4096
)
Public Sub New (
factory As Func(Of T),
Optional localMaxSize As Integer = 64,
Optional sharedMaxSize As Integer = 4096
)
Parameters
- factory FuncT
-
Delegate used to create a new T when no pooled instance is available.
- localMaxSize Int32 (Optional)
-
Maximum objects retained per thread under a JCOBridge HPA license.
Defaults to 64. Ignored with a standard license.
- sharedMaxSize Int32 (Optional)
-
Maximum objects retained in the shared cross-thread store under a JCOBridge HPA license.
Defaults to 4096. Objects returned beyond this limit are silently discarded.
Ignored with a standard license.
See Also