Top Inners Constructors Methods
com.fasterxml.jackson.dataformat.avro.apacheimpl

public final Class AvroRecyclerPools

extends Object
Class Inheritance
Imports
java.lang.ref.SoftReference, java.util.concurrent.ArrayBlockingQueue, .ConcurrentLinkedDeque, com.fasterxml.jackson.core.util.RecyclerPool, .RecyclerPool.BoundedPoolBase, .RecyclerPool.ConcurrentDequePoolBase

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AvroRecyclerPools.BoundedPool

RecyclerPool implementation that uses a bounded queue (ArrayBlockingQueue for recycling instances.

public static class
AvroRecyclerPools.ConcurrentDequePool

RecyclerPool implementation that uses ConcurrentLinkedDeque for recycling instances.

public static class
AvroRecyclerPools.NonRecyclingPool

Dummy RecyclerPool implementation that does not recycle anything but simply creates new instances when asked to acquire items.

public static class
AvroRecyclerPools.ThreadLocalPool

ThreadLocal-based RecyclerPool implementation used for recycling ApacheCodecRecycler instances: see RecyclerPool.ThreadLocalPoolBase for full explanation of functioning.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static RecyclerPool<ApacheCodecRecycler>

Returns:

the default RecyclerPool implementation which is the thread local based one: basically alias to threadLocalPool()).
defaultPool
()

public static RecyclerPool<ApacheCodecRecycler>

Returns:

Globally shared instance of BoundedPool.
newBoundedPool
(int
Maximum number of values to pool
size
)

Accessor for constructing a new, non-shared BoundedPool instance.

public static RecyclerPool<ApacheCodecRecycler>

Returns:

Globally shared instance of NonRecyclingPool.
newConcurrentDequePool
()

Accessor for constructing a new, non-shared ConcurrentDequePool instance.

public static RecyclerPool<ApacheCodecRecycler>

Returns:

Globally shared instance of NonRecyclingPool.
nonRecyclingPool
()

Accessor for getting the shared/global NonRecyclingPool instance (due to design only one instance ever needed)

public static RecyclerPool<ApacheCodecRecycler>

Returns:

Globally shared instance of BoundedPool.
sharedBoundedPool
()

Accessor for getting the shared/global BoundedPool instance.

public static RecyclerPool<ApacheCodecRecycler>

Returns:

Globally shared instance of NonRecyclingPool.
sharedConcurrentDequePool
()

Accessor for getting the shared/global ConcurrentDequePool instance.

public static RecyclerPool<ApacheCodecRecycler>

Returns:

Globally shared instance of ThreadLocalPool
threadLocalPool
()

Accessor for getting the shared/global ThreadLocalPool instance (due to design only one instance ever needed)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AvroRecyclerPoolsback to summary
public AvroRecyclerPools()

Method Detail

defaultPoolback to summary
public static RecyclerPool<ApacheCodecRecycler> defaultPool()
Returns:RecyclerPool<ApacheCodecRecycler>

the default RecyclerPool implementation which is the thread local based one: basically alias to threadLocalPool()).

newBoundedPoolback to summary
public static RecyclerPool<ApacheCodecRecycler> newBoundedPool(int size)

Accessor for constructing a new, non-shared BoundedPool instance.

Parameters
size:int

Maximum number of values to pool

Returns:RecyclerPool<ApacheCodecRecycler>

Globally shared instance of BoundedPool.

newConcurrentDequePoolback to summary
public static RecyclerPool<ApacheCodecRecycler> newConcurrentDequePool()

Accessor for constructing a new, non-shared ConcurrentDequePool instance.

Returns:RecyclerPool<ApacheCodecRecycler>

Globally shared instance of NonRecyclingPool.

nonRecyclingPoolback to summary
public static RecyclerPool<ApacheCodecRecycler> nonRecyclingPool()

Accessor for getting the shared/global NonRecyclingPool instance (due to design only one instance ever needed)

Returns:RecyclerPool<ApacheCodecRecycler>

Globally shared instance of NonRecyclingPool.

sharedBoundedPoolback to summary
public static RecyclerPool<ApacheCodecRecycler> sharedBoundedPool()

Accessor for getting the shared/global BoundedPool instance.

Returns:RecyclerPool<ApacheCodecRecycler>

Globally shared instance of BoundedPool.

sharedConcurrentDequePoolback to summary
public static RecyclerPool<ApacheCodecRecycler> sharedConcurrentDequePool()

Accessor for getting the shared/global ConcurrentDequePool instance.

Returns:RecyclerPool<ApacheCodecRecycler>

Globally shared instance of NonRecyclingPool.

threadLocalPoolback to summary
public static RecyclerPool<ApacheCodecRecycler> threadLocalPool()

Accessor for getting the shared/global ThreadLocalPool instance (due to design only one instance ever needed)

Returns:RecyclerPool<ApacheCodecRecycler>

Globally shared instance of ThreadLocalPool

com.fasterxml.jackson.dataformat.avro.apacheimpl back to summary

public Class AvroRecyclerPools.BoundedPool

extends RecyclerPool.BoundedPoolBase<ApacheCodecRecycler>
Class Inheritance

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 BoundedPoolBase#DEFAULT_CAPACITY.

Field Summary

Modifier and TypeField and Description
protected static final AvroRecyclerPools.BoundedPool
private static final long
Inherited from com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase:
DEFAULT_CAPACITY

Constructor Summary

AccessConstructor and Description
protected
BoundedPool(int capacityAsId)

Method Summary

Modifier and TypeMethod and Description
public static AvroRecyclerPools.BoundedPool
construct(int capacity)

public ApacheCodecRecycler
protected Object
Inherited from com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase:
acquirePooledcapacityreleasePooled

Field Detail

GLOBALback to summary
protected static final AvroRecyclerPools.BoundedPool GLOBAL
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.core.util.RecyclerPool.BoundedPoolBase.serialVersionUID.

Constructor Detail

BoundedPoolback to summary
protected BoundedPool(int capacityAsId)

Method Detail

constructback to summary
public static AvroRecyclerPools.BoundedPool construct(int capacity)
createPooledback to summary
public ApacheCodecRecycler createPooled()

Implements abstract com.fasterxml.jackson.core.util.RecyclerPool.StatefulImplBase.createPooled.

Annotations
@Override
readResolveback to summary
protected Object readResolve()
com.fasterxml.jackson.dataformat.avro.apacheimpl back to summary

public Class AvroRecyclerPools.ConcurrentDequePool

extends RecyclerPool.ConcurrentDequePoolBase<ApacheCodecRecycler>
Class Inheritance

RecyclerPool implementation that uses ConcurrentLinkedDeque for recycling instances.

Pool is unbounded: see RecyclerPool what this means.

Field Summary

Modifier and TypeField and Description
protected static final AvroRecyclerPools.ConcurrentDequePool
private static final long
Inherited from com.fasterxml.jackson.core.util.RecyclerPool.ConcurrentDequePoolBase:
pool

Constructor Summary

AccessConstructor and Description
protected
ConcurrentDequePool(int serialization)

Method Summary

Modifier and TypeMethod and Description
public static AvroRecyclerPools.ConcurrentDequePool
public ApacheCodecRecycler
protected Object
Inherited from com.fasterxml.jackson.core.util.RecyclerPool.ConcurrentDequePoolBase:
acquirePooledreleasePooled

Field Detail

GLOBALback to summary
protected static final AvroRecyclerPools.ConcurrentDequePool GLOBAL
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.core.util.RecyclerPool.ConcurrentDequePoolBase.serialVersionUID.

Constructor Detail

ConcurrentDequePoolback to summary
protected ConcurrentDequePool(int serialization)

Method Detail

constructback to summary
public static AvroRecyclerPools.ConcurrentDequePool construct()
createPooledback to summary
public ApacheCodecRecycler createPooled()

Implements abstract com.fasterxml.jackson.core.util.RecyclerPool.StatefulImplBase.createPooled.

Annotations
@Override
readResolveback to summary
protected Object readResolve()
com.fasterxml.jackson.dataformat.avro.apacheimpl back to summary

public Class AvroRecyclerPools.NonRecyclingPool

extends RecyclerPool.NonRecyclingPoolBase<ApacheCodecRecycler>
Class Inheritance

Dummy RecyclerPool implementation that does not recycle anything but simply creates new instances when asked to acquire items.

Field Summary

Modifier and TypeField and Description
protected static final AvroRecyclerPools.NonRecyclingPool
private static final long

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public ApacheCodecRecycler
protected Object
Inherited from com.fasterxml.jackson.core.util.RecyclerPool.NonRecyclingPoolBase:
acquireAndLinkPooledreleasePooled

Field Detail

GLOBALback to summary
protected static final AvroRecyclerPools.NonRecyclingPool GLOBAL
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.core.util.RecyclerPool.NonRecyclingPoolBase.serialVersionUID.

Constructor Detail

NonRecyclingPoolback to summary
protected NonRecyclingPool()

Method Detail

acquirePooledback to summary
public ApacheCodecRecycler acquirePooled()

Implements abstract com.fasterxml.jackson.core.util.RecyclerPool.NonRecyclingPoolBase.acquirePooled.

Implements com.fasterxml.jackson.core.util.RecyclerPool.acquirePooled.

Doc from com.fasterxml.jackson.core.util.RecyclerPool.acquirePooled.

Method for sub-classes to implement for actual acquire logic; called by acquireAndLinkPooled().

Returns:ApacheCodecRecycler

Instance acquired (pooled or just constructed)

Annotations
@Override
readResolveback to summary
protected Object readResolve()
com.fasterxml.jackson.dataformat.avro.apacheimpl back to summary

public Class AvroRecyclerPools.ThreadLocalPool

extends RecyclerPool.ThreadLocalPoolBase<ApacheCodecRecycler>
Class Inheritance

ThreadLocal-based RecyclerPool implementation used for recycling ApacheCodecRecycler instances: see RecyclerPool.ThreadLocalPoolBase for full explanation of functioning.

Field Summary

Modifier and TypeField and Description
protected static final ThreadLocal<SoftReference<ApacheCodecRecycler>>
protected static final AvroRecyclerPools.ThreadLocalPool
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ApacheCodecRecycler
protected Object
Inherited from com.fasterxml.jackson.core.util.RecyclerPool.ThreadLocalPoolBase:
acquireAndLinkPooledreleasePooled

Field Detail

_recyclerback to summary
protected static final ThreadLocal<SoftReference<ApacheCodecRecycler>> _recycler
GLOBALback to summary
protected static final AvroRecyclerPools.ThreadLocalPool GLOBAL
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.core.util.RecyclerPool.ThreadLocalPoolBase.serialVersionUID.

Constructor Detail

ThreadLocalPoolback to summary
private ThreadLocalPool()

Method Detail

acquirePooledback to summary
public ApacheCodecRecycler acquirePooled()

Implements abstract com.fasterxml.jackson.core.util.RecyclerPool.ThreadLocalPoolBase.acquirePooled.

Implements com.fasterxml.jackson.core.util.RecyclerPool.acquirePooled.

Doc from com.fasterxml.jackson.core.util.RecyclerPool.acquirePooled.

Method for sub-classes to implement for actual acquire logic; called by acquireAndLinkPooled().

Returns:ApacheCodecRecycler

Instance acquired (pooled or just constructed)

Annotations
@Override
readResolveback to summary
protected Object readResolve()