Class RecyclerPool.StatefulImplBase<P extends RecyclerPool.WithPool<P>>
java.lang.Object
com.fasterxml.jackson.core.util.RecyclerPool.StatefulImplBase<P>
- All Implemented Interfaces:
RecyclerPool<P>, Serializable
- Direct Known Subclasses:
RecyclerPool.BoundedPoolBase, RecyclerPool.ConcurrentDequePoolBase, RecyclerPool.LockFreePoolBase
- Enclosing interface:
RecyclerPool<P extends RecyclerPool.WithPool<P>>
public abstract static class RecyclerPool.StatefulImplBase<P extends RecyclerPool.WithPool<P>>
extends Object
implements RecyclerPool<P>
Intermediate base class for instances that are stateful and require
special handling with respect to JDK serialization, to retain
"global" reference distinct from non-shared ones.
- 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
FieldsModifier and TypeFieldDescriptionprotected final intValue that indicates basic aspects of pool for JDK serialization; either marker for shared/non-shared, or possibly bounded size; depends on sub-class.static final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<RecyclerPool.StatefulImplBase<P>> abstract PMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RecyclerPool
acquireAndLinkPooled, acquirePooled, clear, pooledCount, releasePooled
-
Field Details
-
SERIALIZATION_SHARED
public static final int SERIALIZATION_SHARED- See Also:
-
SERIALIZATION_NON_SHARED
public static final int SERIALIZATION_NON_SHARED- See Also:
-
_serialization
protected final int _serializationValue that indicates basic aspects of pool for JDK serialization; either marker for shared/non-shared, or possibly bounded size; depends on sub-class.
-
-
Constructor Details
-
StatefulImplBase
protected StatefulImplBase(int serialization)
-
-
Method Details
-
createPooled