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>
,java.io.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 moreBufferRecycler
instances than its size configuration: the default size isRecyclerPool.BoundedPoolBase.DEFAULT_CAPACITY
.- See Also:
- Serialized Form
-
-
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_NON_SHARED, SERIALIZATION_SHARED
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonRecyclerPools.BoundedPool
construct(int capacity)
BufferRecycler
createPooled()
-
Methods inherited from class com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase
acquirePooled, capacity, clear, pooledCount, releasePooled
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.fasterxml.jackson.core.util.RecyclerPool
acquireAndLinkPooled
-
-
-
-
Method Detail
-
construct
public static JsonRecyclerPools.BoundedPool construct(int capacity)
-
createPooled
public BufferRecycler createPooled()
- Specified by:
createPooled
in classRecyclerPool.StatefulImplBase<BufferRecycler>
-
-