Updated javadocs
This commit is contained in:
parent
305704a215
commit
4eb011a7d4
|
@ -19,6 +19,9 @@ import java.util.concurrent.ArrayBlockingQueue;
|
|||
import java.util.concurrent.BlockingQueue;
|
||||
|
||||
/**
|
||||
* A blocking pool of a specific size, where the entire pool is initially filled, and when the pool is empty, a
|
||||
* {@link ObjectPool#take()} will wait for a corresponding {@link ObjectPool#put(Object)}.
|
||||
*
|
||||
* @author dorkbox, llc
|
||||
*/
|
||||
class BlockingPool<T> extends ObjectPool<T> {
|
||||
|
|
|
@ -19,6 +19,10 @@ import java.util.Queue;
|
|||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
|
||||
/**
|
||||
* A non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created. The items in the
|
||||
* pool will never expire or be automatically garbage collected. (see {@link #NonBlockingSoftReference(PoolableObject)} for pooled objects
|
||||
* that will expire/GC as needed).
|
||||
*
|
||||
* @author dorkbox, llc
|
||||
*/
|
||||
class NonBlockingPool<T> extends ObjectPool<T> {
|
||||
|
|
|
@ -20,6 +20,9 @@ import java.util.Queue;
|
|||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
|
||||
/**
|
||||
* A non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created. The items in the
|
||||
* pool will expire and be automatically Garbage Collected in response to memory demand. (See {@link #NonBlocking(PoolableObject)}
|
||||
* for pooled objects that will never expire).
|
||||
* @author dorkbox, llc
|
||||
*/
|
||||
class NonBlockingSoftPool<T> extends ObjectPool<T> {
|
||||
|
|
|
@ -64,7 +64,8 @@ class ObjectPool<T> implements Pool<T> {
|
|||
|
||||
/**
|
||||
* Creates a non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created. The items in the
|
||||
* pool will never expire (see {@link #NonBlockingSoftReference(PoolableObject)} for pooled objects that will expire as needed).
|
||||
* pool will never expire or be automatically garbage collected. (see {@link #NonBlockingSoftReference(PoolableObject)} for pooled objects
|
||||
* that will expire/GC as needed).
|
||||
*
|
||||
* @param poolableObject controls the lifecycle of the pooled objects.
|
||||
* @param <T> the type of object used in the pool
|
||||
|
@ -77,7 +78,8 @@ class ObjectPool<T> implements Pool<T> {
|
|||
|
||||
/**
|
||||
* Creates a non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created. The items in the
|
||||
* pool will never expire (see {@link #NonBlockingSoftReference(PoolableObject)} for pooled objects that will expire as needed).
|
||||
* pool will never expire or be automatically garbage collected. (see {@link #NonBlockingSoftReference(PoolableObject)} for pooled objects
|
||||
* that will expire/GC as needed).
|
||||
*
|
||||
* @param poolableObject controls the lifecycle of the pooled objects.
|
||||
* @param queue the queue implementation to use
|
||||
|
@ -92,7 +94,8 @@ class ObjectPool<T> implements Pool<T> {
|
|||
|
||||
/**
|
||||
* Creates a non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created. The items in the
|
||||
* pool will expire in response to memory demand. (See {@link #NonBlocking(PoolableObject)} for pooled objects that will never expire)
|
||||
* pool will expire and be automatically Garbage Collected in response to memory demand. (See {@link #NonBlocking(PoolableObject)}
|
||||
* for pooled objects that will never expire).
|
||||
*
|
||||
* @param poolableObject controls the lifecycle of the pooled objects.
|
||||
* @param <T> the type of object used in the pool
|
||||
|
@ -105,7 +108,8 @@ class ObjectPool<T> implements Pool<T> {
|
|||
|
||||
/**
|
||||
* Creates a non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created. The items in the
|
||||
* pool will expire in response to memory demand. (See {@link #NonBlocking(PoolableObject)} for pooled objects that will never expire)
|
||||
* pool will expire and be automatically Garbage Collected in response to memory demand. (See {@link #NonBlocking(PoolableObject)}
|
||||
* for pooled objects that will never expire).
|
||||
*
|
||||
* @param poolableObject controls the lifecycle of the pooled objects.
|
||||
* @param queue the queue implementation to use
|
||||
|
|
Loading…
Reference in New Issue