Class 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.
    • Constructor Detail

    • Method Detail

      • createQueue

        protected Queue<T> createQueue​(int maxSize)