Package io.netty.util

Class Recycler<T>

  • Type Parameters:
    T - the type of the pooled object

    public abstract class Recycler<T>
    extends java.lang.Object
    Light-weight object pool based on a thread-local stack.
    • Constructor Detail

      • Recycler

        protected Recycler()
      • Recycler

        protected Recycler​(int maxCapacityPerThread)
      • Recycler

        @Deprecated
        protected Recycler​(int maxCapacityPerThread,
                           int maxSharedCapacityFactor,
                           int ratio,
                           int maxDelayedQueuesPerThread)
        Deprecated.
        Use one of the following instead: Recycler(), Recycler(int), Recycler(int, int, int).
      • Recycler

        @Deprecated
        protected Recycler​(int maxCapacityPerThread,
                           int maxSharedCapacityFactor,
                           int ratio,
                           int maxDelayedQueuesPerThread,
                           int delayedQueueRatio)
        Deprecated.
        Use one of the following instead: Recycler(), Recycler(int), Recycler(int, int, int).
      • Recycler

        protected Recycler​(int maxCapacityPerThread,
                           int ratio,
                           int chunkSize)