public static class AvroRecyclerPools.BoundedPool extends com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase<ApacheCodecRecycler>
RecyclerPool implementation that uses
a bounded queue (ArrayBlockingQueue for recycling instances.
This is "bounded" pool since it will never hold on to more
ApacheCodecRecycler instances than its size configuration:
the default size is RecyclerPool.BoundedPoolBase.DEFAULT_CAPACITY.com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase<P extends com.fasterxml.jackson.core.util.RecyclerPool.WithPool<P>>, com.fasterxml.jackson.core.util.RecyclerPool.ConcurrentDequePoolBase<P extends com.fasterxml.jackson.core.util.RecyclerPool.WithPool<P>>, com.fasterxml.jackson.core.util.RecyclerPool.LockFreePoolBase<P extends com.fasterxml.jackson.core.util.RecyclerPool.WithPool<P>>, com.fasterxml.jackson.core.util.RecyclerPool.NonRecyclingPoolBase<P extends com.fasterxml.jackson.core.util.RecyclerPool.WithPool<P>>, com.fasterxml.jackson.core.util.RecyclerPool.StatefulImplBase<P extends com.fasterxml.jackson.core.util.RecyclerPool.WithPool<P>>, com.fasterxml.jackson.core.util.RecyclerPool.ThreadLocalPoolBase<P extends com.fasterxml.jackson.core.util.RecyclerPool.WithPool<P>>, com.fasterxml.jackson.core.util.RecyclerPool.WithPool<P extends com.fasterxml.jackson.core.util.RecyclerPool.WithPool<P>>| Modifier and Type | Field and Description |
|---|---|
protected static AvroRecyclerPools.BoundedPool |
GLOBAL |
| Modifier | Constructor and Description |
|---|---|
protected |
BoundedPool(int capacityAsId) |
| Modifier and Type | Method and Description |
|---|---|
static AvroRecyclerPools.BoundedPool |
construct(int capacity) |
ApacheCodecRecycler |
createPooled() |
protected Object |
readResolve() |
acquirePooled, capacity, clear, pooledCount, releasePooled_resolveToSharedprotected static final AvroRecyclerPools.BoundedPool GLOBAL
public static AvroRecyclerPools.BoundedPool construct(int capacity)
public ApacheCodecRecycler createPooled()
createPooled in class com.fasterxml.jackson.core.util.RecyclerPool.StatefulImplBase<ApacheCodecRecycler>protected Object readResolve()
Copyright © 2024 FasterXML. All rights reserved.