Class JsonRecyclerPools.NonRecyclingPool
java.lang.Object
com.fasterxml.jackson.core.util.RecyclerPool.NonRecyclingPoolBase<BufferRecycler>
com.fasterxml.jackson.core.util.JsonRecyclerPools.NonRecyclingPool
- All Implemented Interfaces:
RecyclerPool<BufferRecycler>, Serializable
- Enclosing class:
JsonRecyclerPools
public static class JsonRecyclerPools.NonRecyclingPool
extends RecyclerPool.NonRecyclingPoolBase<BufferRecycler>
Dummy
RecyclerPool implementation that does not recycle
anything but simply creates new instances when asked to acquire items.- Since:
- 2.16
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface RecyclerPool
RecyclerPool.BoundedPoolBase<P>, RecyclerPool.ConcurrentDequePoolBase<P>, RecyclerPool.LockFreePoolBase<P>, RecyclerPool.NonRecyclingPoolBase<P>, RecyclerPool.StatefulImplBase<P>, RecyclerPool.ThreadLocalPoolBase<P>, RecyclerPool.WithPool<P> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod for sub-classes to implement for actual acquire logic; called byRecyclerPool.acquireAndLinkPooled().protected ObjectMethods inherited from class RecyclerPool.NonRecyclingPoolBase
acquireAndLinkPooled, clear, pooledCount, releasePooled
-
Field Details
-
GLOBAL
-
-
Constructor Details
-
NonRecyclingPool
protected NonRecyclingPool()
-
-
Method Details
-
acquirePooled
Description copied from interface:RecyclerPoolMethod for sub-classes to implement for actual acquire logic; called byRecyclerPool.acquireAndLinkPooled().- Specified by:
acquirePooledin interfaceRecyclerPool<BufferRecycler>- Specified by:
acquirePooledin classRecyclerPool.NonRecyclingPoolBase<BufferRecycler>- Returns:
- Instance acquired (pooled or just constructed)
-
readResolve
-