Class Recycler.LocalPool<H,T>
java.lang.Object
io.netty.util.Recycler.LocalPool<H,T>
- Direct Known Subclasses:
Recycler.GuardedLocalPool, Recycler.UnguardedLocalPool
private abstract static class Recycler.LocalPool<H,T>
extends java.lang.Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Hacquire()(package private) booleanprivate static <H> org.jctools.queues.MessagePassingQueue<H> createExternalMcPool(int maxCapacity) private static <H> org.jctools.queues.MessagePassingQueue<H> createExternalScPool(int chunkSize, int maxCapacity) (package private) abstract Tprivate static booleanisTerminated(java.lang.Thread owner) protected final void(package private) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ratioInterval
private final int ratioInterval -
batch
-
batchSize
private int batchSize -
owner
private java.lang.Thread owner -
pooledHandles
-
ratioCounter
private int ratioCounter
-
-
Constructor Details
-
LocalPool
LocalPool(int maxCapacity) -
LocalPool
LocalPool(java.lang.Thread owner, int maxCapacity, int ratioInterval, int chunkSize) -
LocalPool
LocalPool(int maxCapacity, int ratioInterval, int chunkSize)
-
-
Method Details
-
createExternalMcPool
private static <H> org.jctools.queues.MessagePassingQueue<H> createExternalMcPool(int maxCapacity) -
createExternalScPool
private static <H> org.jctools.queues.MessagePassingQueue<H> createExternalScPool(int chunkSize, int maxCapacity) -
acquire
-
release
-
isTerminated
private static boolean isTerminated(java.lang.Thread owner) -
canAllocatePooled
boolean canAllocatePooled() -
getWith
-
size
int size()
-