public static class JsonRecyclerPools.BoundedPool extends RecyclerPool.BoundedPoolBase<BufferRecycler>
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 RecyclerPool.BoundedPoolBase.DEFAULT_CAPACITY.RecyclerPool.BoundedPoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.ConcurrentDequePoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.LockFreePoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.NonRecyclingPoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.StatefulImplBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.ThreadLocalPoolBase<P extends RecyclerPool.WithPool<P>>, RecyclerPool.WithPool<P extends RecyclerPool.WithPool<P>>DEFAULT_CAPACITYSERIALIZATION_NON_SHARED, SERIALIZATION_SHARED| Modifier and Type | Method and Description |
|---|---|
static JsonRecyclerPools.BoundedPool |
construct(int capacity) |
BufferRecycler |
createPooled() |
acquirePooled, capacity, releasePooledequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireAndLinkPooledpublic static JsonRecyclerPools.BoundedPool construct(int capacity)
public BufferRecycler createPooled()
createPooled in class RecyclerPool.StatefulImplBase<BufferRecycler>Copyright © 2010 - 2024 Adobe. All Rights Reserved