RecyclerPool implementations to be used by the default
JSON-backed JsonFactory for recycling BufferRecycler
containers.
| Modifier and Type | Class and Description |
|---|---|
| public static class | JsonRecyclerPools.BoundedPool
|
| public static class | JsonRecyclerPools.ConcurrentDequePool
|
| public static class | JsonRecyclerPools.LockFreePool
|
| public static class | JsonRecyclerPools.NonRecyclingPool
Dummy |
| public static class | JsonRecyclerPools.ThreadLocalPool
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static RecyclerPool | Returns: the defaultRecyclerPool implementation
which is the thread local based one:
basically alias to threadLocalPool()).
|
| public static RecyclerPool | Returns: Globally shared instance ofBoundedPool.Maximum number of values to pool size)Accessor for constructing a new, non-shared |
| public static RecyclerPool | Returns: Globally shared instance ofNonRecyclingPool.Accessor for constructing a new, non-shared |
| public static RecyclerPool | Returns: Globally shared instance ofLockFreePool.Accessor for constructing a new, non-shared |
| public static RecyclerPool | Returns: Globally shared instance ofNonRecyclingPool.Accessor for getting the shared/global |
| public static RecyclerPool | Returns: Globally shared instance ofBoundedPool.Accessor for getting the shared/global |
| public static RecyclerPool | Returns: Globally shared instance ofNonRecyclingPool.Accessor for getting the shared/global |
| public static RecyclerPool | Returns: Globally shared instance ofLockFreePool.Accessor for getting the shared/global |
| public static RecyclerPool | Returns: Globally shared instance ofThreadLocalPoolAccessor for getting the shared/global |
| JsonRecyclerPools | back to summary |
|---|---|
| public JsonRecyclerPools() | |
| defaultPool | back to summary |
|---|---|
public static RecyclerPool
| |
| newBoundedPool | back to summary |
|---|---|
| public static RecyclerPool Accessor for constructing a new, non-shared
| |
| newConcurrentDequePool | back to summary |
|---|---|
| public static RecyclerPool Accessor for constructing a new, non-shared
| |
| newLockFreePool | back to summary |
|---|---|
| public static RecyclerPool Accessor for constructing a new, non-shared
| |
| nonRecyclingPool | back to summary |
|---|---|
| public static RecyclerPool Accessor for getting the shared/global
| |
| sharedBoundedPool | back to summary |
|---|---|
| public static RecyclerPool Accessor for getting the shared/global
| |
| sharedConcurrentDequePool | back to summary |
|---|---|
| public static RecyclerPool Accessor for getting the shared/global
| |
| sharedLockFreePool | back to summary |
|---|---|
| public static RecyclerPool Accessor for getting the shared/global
| |
| threadLocalPool | back to summary |
|---|---|
| public static RecyclerPool Accessor for getting the shared/global
| |
RecyclerPool implementation that uses
a bounded queue (ArrayBlockingQueue for recycling instances.
This is "bounded" pool since it will never hold on to more
BufferRecycler instances than its size configuration:
the default size is BoundedPoolBase#DEFAULT_CAPACITY.
| Modifier and Type | Field and Description |
|---|---|
| protected static final JsonRecyclerPools. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static JsonRecyclerPools. | |
| public BufferRecycler | createPooled()
Implements abstract com. |
| protected Object |
| GLOBAL | back to summary |
|---|---|
| protected static final JsonRecyclerPools. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| BoundedPool | back to summary |
|---|---|
| protected BoundedPool(int capacityAsId) | |
| construct | back to summary |
|---|---|
| public static JsonRecyclerPools. | |
| createPooled | back to summary |
|---|---|
| public BufferRecycler createPooled() Implements abstract com.
| |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |
RecyclerPool implementation that uses
ConcurrentLinkedDeque for recycling instances.
Pool is unbounded: see RecyclerPool what this means.
| Modifier and Type | Field and Description |
|---|---|
| protected static final JsonRecyclerPools. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static JsonRecyclerPools. | |
| public BufferRecycler | createPooled()
Implements abstract com. |
| protected Object |
| GLOBAL | back to summary |
|---|---|
| protected static final JsonRecyclerPools. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| ConcurrentDequePool | back to summary |
|---|---|
| protected ConcurrentDequePool(int serialization) | |
| construct | back to summary |
|---|---|
| public static JsonRecyclerPools. | |
| createPooled | back to summary |
|---|---|
| public BufferRecycler createPooled() Implements abstract com.
| |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |
RecyclerPool implementation that uses
a lock free linked list for recycling instances.
Pool is unbounded: see RecyclerPool for
details on what this means.
| Modifier and Type | Field and Description |
|---|---|
| protected static final JsonRecyclerPools. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static JsonRecyclerPools. | |
| public BufferRecycler | createPooled()
Implements abstract com. |
| protected Object |
| GLOBAL | back to summary |
|---|---|
| protected static final JsonRecyclerPools. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| LockFreePool | back to summary |
|---|---|
| protected LockFreePool(int serialization) | |
| construct | back to summary |
|---|---|
| public static JsonRecyclerPools. | |
| createPooled | back to summary |
|---|---|
| public BufferRecycler createPooled() Implements abstract com.
| |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |
RecyclerPool implementation that does not recycle
anything but simply creates new instances when asked to acquire items.
| Modifier and Type | Field and Description |
|---|---|
| protected static final JsonRecyclerPools. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public BufferRecycler | acquirePooled()
Implements abstract com. Implements com. acquireAndLinkPooled().
|
| protected Object |
| GLOBAL | back to summary |
|---|---|
| protected static final JsonRecyclerPools. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| NonRecyclingPool | back to summary |
|---|---|
| protected NonRecyclingPool() | |
| acquirePooled | back to summary |
|---|---|
| public BufferRecycler acquirePooled() Implements abstract com. Implements com. Doc from com. Method for sub-classes to implement for actual acquire logic; called
by
| |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |
ThreadLocal-based RecyclerPool implementation used for
recycling BufferRecycler instances:
see RecyclerPool.ThreadLocalPoolBase for full explanation
of functioning.
| Modifier and Type | Field and Description |
|---|---|
| protected static final JsonRecyclerPools. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public BufferRecycler | acquirePooled()
Implements abstract com. Implements com. acquireAndLinkPooled().
|
| protected Object |
| GLOBAL | back to summary |
|---|---|
| protected static final JsonRecyclerPools. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| ThreadLocalPool | back to summary |
|---|---|
| private ThreadLocalPool() | |
| acquirePooled | back to summary |
|---|---|
| public BufferRecycler acquirePooled() Implements abstract com. Implements com. Doc from com. Method for sub-classes to implement for actual acquire logic; called
by
| |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |