public static class JsonRecyclerPools.BoundedPool extends RecyclerPool.BoundedPoolBase<BufferRecycler>
RecyclerPool
implementation that uses
a bounded queue (ArrayBlockingQueue
for recycling instances.
This is "bounded" pool since it will never hold on to more
BufferRecycler
instances than its size configuration:
the default size is RecyclerPool.BoundedPoolBase.DEFAULT_CAPACITY
.RecyclerPool.BoundedPoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.ConcurrentDequePoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.LockFreePoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.NonRecyclingPoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.StatefulImplBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.ThreadLocalPoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.WithPool<P extends RecyclerPool.WithPool<P>>
Modifier and Type | Field and Description |
---|---|
protected static JsonRecyclerPools.BoundedPool |
GLOBAL |
DEFAULT_CAPACITY
_serialization, SERIALIZATION_NON_SHARED, SERIALIZATION_SHARED
Modifier | Constructor and Description |
---|---|
protected |
BoundedPool(int capacityAsId) |
Modifier and Type | Method and Description |
---|---|
static JsonRecyclerPools.BoundedPool |
construct(int capacity) |
BufferRecycler |
createPooled() |
protected Object |
readResolve() |
acquirePooled, capacity, releasePooled
_resolveToShared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireAndLinkPooled
protected static final JsonRecyclerPools.BoundedPool GLOBAL
public static JsonRecyclerPools.BoundedPool construct(int capacity)
public BufferRecycler createPooled()
createPooled
in class RecyclerPool.StatefulImplBase<BufferRecycler>
protected Object readResolve()
Copyright © 2008–2023 FasterXML. All rights reserved.