Class RecyclerPool.ThreadLocalPoolBase<P extends RecyclerPool.WithPool<P>>

java.lang.Object
com.fasterxml.jackson.core.util.RecyclerPool.ThreadLocalPoolBase<P>
All Implemented Interfaces:
RecyclerPool<P>, Serializable
Direct Known Subclasses:
JsonRecyclerPools.ThreadLocalPool
Enclosing interface:
RecyclerPool<P extends RecyclerPool.WithPool<P>>

public abstract static class RecyclerPool.ThreadLocalPoolBase<P extends RecyclerPool.WithPool<P>> extends Object implements RecyclerPool<P>
Default RecyclerPool implementation that uses ThreadLocal for recycling instances. Instances are stored using SoftReferences so that they may be Garbage Collected as needed by JVM.

Note that this implementation may not work well on platforms where SoftReferences are not well supported (like Android), or on platforms where Threads are not long-living or reused (like Project Loom).

See Also: