Class Pool<T>
- java.lang.Object
-
- org.apache.activemq.artemis.utils.pools.Pool<T>
-
- Type Parameters:
T-
- Direct Known Subclasses:
MpscPool
public abstract class Pool<T> extends java.lang.ObjectA simple encapsulation to provide a pool of objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tborrow()Use this to instantiate or return objects from the poolvoidrelease(T object)Return objects to the pool, they will be either reused or ignored by the max size
-