| java.lang.Object org.apache.tomcat.util.collections.SimplePool
SimplePool | final public class SimplePool (Code) | | Simple object pool. Based on ThreadPool and few other classes
The pool will ignore overflow and return null if empty.
author: Gal Shachor author: Costin Manolache |
DEFAULT_SIZE | final public static int DEFAULT_SIZE(Code) | | |
debug | final static int debug(Code) | | |
SimplePool | public SimplePool()(Code) | | |
SimplePool | public SimplePool(int size)(Code) | | |
SimplePool | public SimplePool(int size, int max)(Code) | | |
get | public Object get()(Code) | | Get an object from the pool, null if the pool is empty.
|
getCount | public int getCount()(Code) | | Number of object in the pool
|
getMax | public int getMax()(Code) | | Return the size of the pool
|
put | public void put(Object o)(Code) | | Add the object to the pool, silent nothing if the pool is full
|
shutdown | public void shutdown()(Code) | | |
|
|