Click or drag to resize

JCOBridgeObjectPoolT Class

A lightweight object pool that reduces allocation pressure in high-throughput scenarios. Full pooling behaviour is available only under a JCOBridge High Performance (HPA) license; with a standard license Rent(Boolean) always creates a new instance via the factory delegate.
Inheritance Hierarchy
SystemObject
  MASES.JCOBridge.C2JBridgeJCOBridgeObjectPoolT

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public sealed class JCOBridgeObjectPool<T>

Type Parameters

T
Type of the pooled objects.

The JCOBridgeObjectPoolT type exposes the following members.

Constructors
 NameDescription
Public methodJCOBridgeObjectPoolT Initialises a new pool instance.
Top
Properties
 NameDescription
Public propertyIsEnable Returns if JCOBridgeObjectPoolT has pooling enabled (i.e. JCOBridge HPA license), otherwise
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodRent Retrieves an instance from the pool, or creates a new one if no pooled instance is available.
Public methodReturn Returns a previously rented instance to the pool for reuse.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn Converts a generic object
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Top
See Also