Class MpscPool<T>
- java.lang.Object
-
- org.apache.activemq.artemis.utils.pools.Pool<T>
-
- org.apache.activemq.artemis.utils.pools.MpscPool<T>
-
- Type Parameters:
T-
public class MpscPool<T> extends Pool<T>
A simple encapsulation of Netty MpscQueue to provide a pool of objects. Use this pool only when the borrowing of object (consume) is done on a single thread. This is using a Multi Producer Single Consumer queue (MPSC). If you need other uses you may create different strategies for ObjectPooling.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Queue<T>createQueue(int maxSize)
-