Class Pool<T>
java.lang.Object
org.apache.activemq.artemis.utils.pools.Pool<T>
- Direct Known Subclasses:
MpscPool
A simple encapsulation to provide a pool of objects.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pool
-
-
Method Details
-
borrow
Use this to instantiate or return objects from the pool -
release
Return objects to the pool, they will be either reused or ignored by the max size
-