Package io.netty.util

Class Recycler.LocalPool<T>

java.lang.Object
io.netty.util.Recycler.LocalPool<T>
All Implemented Interfaces:
org.jctools.queues.MessagePassingQueue.Consumer<Recycler.DefaultHandle<T>>
Enclosing class:
Recycler<T>

private static final class Recycler.LocalPool<T> extends Object implements org.jctools.queues.MessagePassingQueue.Consumer<Recycler.DefaultHandle<T>>
  • Field Details

    • ratioInterval

      private final int ratioInterval
    • chunkSize

      private final int chunkSize
    • batch

      private final ArrayDeque<Recycler.DefaultHandle<T>> batch
    • owner

      private volatile Thread owner
    • pooledHandles

      private volatile org.jctools.queues.MessagePassingQueue<Recycler.DefaultHandle<T>> pooledHandles
    • ratioCounter

      private int ratioCounter
  • Constructor Details

    • LocalPool

      LocalPool(int maxCapacity, int ratioInterval, int chunkSize)
  • Method Details