| java.lang.Object com.rimfaxe.webserver.runtime.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 |
DEFAULT_SIZE | final public static int DEFAULT_SIZE(Code) | | |
SimplePool | public SimplePool()(Code) | | |
SimplePool | public SimplePool(int max)(Code) | | |
get | public Object get()(Code) | | Get an object from the pool, null if the pool is empty.
|
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
|
|
|