Package io.netty.util

Class Recycler<T>

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

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

      • Recycler

        protected Recycler()
      • Recycler

        protected Recycler​(int maxCapacityPerThread)
      • Recycler

        protected Recycler​(int maxCapacityPerThread,
                           int maxSharedCapacityFactor)
      • Recycler

        protected Recycler​(int maxCapacityPerThread,
                           int maxSharedCapacityFactor,
                           int ratio,
                           int maxDelayedQueuesPerThread)
      • Recycler

        protected Recycler​(int maxCapacityPerThread,
                           int maxSharedCapacityFactor,
                           int ratio,
                           int maxDelayedQueuesPerThread,
                           int delayedQueueRatio)