Package com.fasterxml.jackson.core.util
Class JsonRecyclerPools.BoundedPool
java.lang.Object
com.fasterxml.jackson.core.util.RecyclerPool.StatefulImplBase<P>
com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase<BufferRecycler>
com.fasterxml.jackson.core.util.JsonRecyclerPools.BoundedPool
- All Implemented Interfaces:
RecyclerPool<BufferRecycler>
,Serializable
- Enclosing class:
- JsonRecyclerPools
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
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fasterxml.jackson.core.util.RecyclerPool
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>>
-
Field Summary
Fields inherited from class com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase
DEFAULT_CAPACITY
Fields inherited from class com.fasterxml.jackson.core.util.RecyclerPool.StatefulImplBase
_serialization, SERIALIZATION_NON_SHARED, SERIALIZATION_SHARED
-
Constructor Summary
-
Method Summary
Methods inherited from class com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase
acquirePooled, capacity, releasePooled
Methods inherited from class com.fasterxml.jackson.core.util.RecyclerPool.StatefulImplBase
_resolveToShared
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fasterxml.jackson.core.util.RecyclerPool
acquireAndLinkPooled
-
Field Details
-
GLOBAL
-
-
Constructor Details
-
BoundedPool
protected BoundedPool(int capacityAsId)
-
-
Method Details
-
construct
-
createPooled
- Specified by:
createPooled
in classRecyclerPool.StatefulImplBase<BufferRecycler>
-
readResolve
-