| java.lang.Object org.apache.jasper.util.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 |
Method Summary | |
public Object | get() Get an object from the pool, null if the pool is empty. | public int | getMax() | public void | put(Object o) |
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) | | Adds the given object to the pool, and does nothing if the pool is full
|
|
|