Class AvroRecyclerPools
java.lang.Object
tools.jackson.dataformat.avro.apacheimpl.AvroRecyclerPools
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecyclerPoolimplementation that uses a bounded queue (ArrayBlockingQueuefor recycling instances.static classRecyclerPoolimplementation that usesConcurrentLinkedDequefor recycling instances.static classDummyRecyclerPoolimplementation that does not recycle anything but simply creates new instances when asked to acquire items.static classThreadLocal-basedRecyclerPoolimplementation used for recyclingApacheCodecRecyclerinstances: seeRecyclerPool.ThreadLocalPoolBasefor full explanation of functioning. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler>Method to call to get the default recycler pool instance: as of Jackson 3.0 and later this is same as callingnewConcurrentDequePool().static tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler>newBoundedPool(int size) Accessor for constructing a new, non-sharedAvroRecyclerPools.BoundedPoolinstance.static tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler>Accessor for constructing a new, non-sharedAvroRecyclerPools.ConcurrentDequePoolinstance.static tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler>Accessor for getting the shared/globalAvroRecyclerPools.NonRecyclingPoolinstance (due to design only one instance ever needed)static tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler>Accessor for getting the shared/globalAvroRecyclerPools.BoundedPoolinstance.static tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler>Accessor for getting the shared/globalAvroRecyclerPools.ConcurrentDequePoolinstance.static tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler>Accessor for getting the shared/globalAvroRecyclerPools.ThreadLocalPoolinstance (due to design only one instance ever needed)
-
Constructor Details
-
AvroRecyclerPools
public AvroRecyclerPools()
-
-
Method Details
-
defaultPool
Method to call to get the default recycler pool instance: as of Jackson 3.0 and later this is same as callingnewConcurrentDequePool().- Returns:
- the default
RecyclerPoolimplementation
-
threadLocalPool
Accessor for getting the shared/globalAvroRecyclerPools.ThreadLocalPoolinstance (due to design only one instance ever needed)- Returns:
- Globally shared instance of
AvroRecyclerPools.ThreadLocalPool
-
nonRecyclingPool
Accessor for getting the shared/globalAvroRecyclerPools.NonRecyclingPoolinstance (due to design only one instance ever needed)- Returns:
- Globally shared instance of
AvroRecyclerPools.NonRecyclingPool.
-
newConcurrentDequePool
Accessor for constructing a new, non-sharedAvroRecyclerPools.ConcurrentDequePoolinstance.- Returns:
- Globally shared instance of
AvroRecyclerPools.NonRecyclingPool.
-
newBoundedPool
Accessor for constructing a new, non-sharedAvroRecyclerPools.BoundedPoolinstance.- Parameters:
size- Maximum number of values to pool- Returns:
- Globally shared instance of
AvroRecyclerPools.BoundedPool.
-