public final class AvroRecyclerPools extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AvroRecyclerPools.BoundedPool
RecyclerPool implementation that uses
a bounded queue (ArrayBlockingQueue for recycling instances. |
static class |
AvroRecyclerPools.ConcurrentDequePool
RecyclerPool implementation that uses
ConcurrentLinkedDeque for recycling instances. |
static class |
AvroRecyclerPools.LockFreePool
RecyclerPool implementation that uses
a lock free linked list for recycling instances. |
static class |
AvroRecyclerPools.NonRecyclingPool
Dummy
RecyclerPool implementation that does not recycle
anything but simply creates new instances when asked to acquire items. |
static class |
AvroRecyclerPools.ThreadLocalPool
ThreadLocal-based RecyclerPool implementation used for
recycling ApacheCodecRecycler instances:
see RecyclerPool.ThreadLocalPoolBase for full explanation
of functioning. |
| Constructor and Description |
|---|
AvroRecyclerPools() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
defaultPool() |
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
newBoundedPool(int size)
Accessor for constructing a new, non-shared
AvroRecyclerPools.BoundedPool instance. |
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
newConcurrentDequePool()
Accessor for constructing a new, non-shared
AvroRecyclerPools.ConcurrentDequePool instance. |
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
newLockFreePool()
Accessor for constructing a new, non-shared
AvroRecyclerPools.LockFreePool instance. |
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
nonRecyclingPool()
Accessor for getting the shared/global
AvroRecyclerPools.NonRecyclingPool instance
(due to design only one instance ever needed) |
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
sharedBoundedPool()
Accessor for getting the shared/global
AvroRecyclerPools.BoundedPool instance. |
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
sharedConcurrentDequePool()
Accessor for getting the shared/global
AvroRecyclerPools.ConcurrentDequePool instance. |
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
sharedLockFreePool()
Accessor for getting the shared/global
AvroRecyclerPools.LockFreePool instance. |
static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> |
threadLocalPool()
Accessor for getting the shared/global
AvroRecyclerPools.ThreadLocalPool instance
(due to design only one instance ever needed) |
public static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> defaultPool()
RecyclerPool implementation
which is the thread local based one:
basically alias to threadLocalPool()).public static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> threadLocalPool()
AvroRecyclerPools.ThreadLocalPool instance
(due to design only one instance ever needed)AvroRecyclerPools.ThreadLocalPoolpublic static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> nonRecyclingPool()
AvroRecyclerPools.NonRecyclingPool instance
(due to design only one instance ever needed)AvroRecyclerPools.NonRecyclingPool.public static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> sharedConcurrentDequePool()
AvroRecyclerPools.ConcurrentDequePool instance.AvroRecyclerPools.NonRecyclingPool.public static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> newConcurrentDequePool()
AvroRecyclerPools.ConcurrentDequePool instance.AvroRecyclerPools.NonRecyclingPool.public static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> sharedLockFreePool()
AvroRecyclerPools.LockFreePool instance.AvroRecyclerPools.LockFreePool.public static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> newLockFreePool()
AvroRecyclerPools.LockFreePool instance.AvroRecyclerPools.LockFreePool.public static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> sharedBoundedPool()
AvroRecyclerPools.BoundedPool instance.AvroRecyclerPools.BoundedPool.public static com.fasterxml.jackson.core.util.RecyclerPool<ApacheCodecRecycler> newBoundedPool(int size)
AvroRecyclerPools.BoundedPool instance.size - Maximum number of values to poolAvroRecyclerPools.BoundedPool.Copyright © 2023 FasterXML. All rights reserved.