org.apache.tomcat.util.collections
public final class SimplePool extends Object
Deprecated:
Simple object pool. Based on ThreadPool and few other classes The pool will ignore overflow and return null if empty.| Field Summary | |
|---|---|
| static int | DEFAULT_SIZE |
| Constructor Summary | |
|---|---|
| SimplePool() | |
| SimplePool(int size) | |
| SimplePool(int size, int max) | |
| Method Summary | |
|---|---|
| Object | get()
Get an object from the pool, null if the pool is empty. |
| int | getCount()
Number of object in the pool |
| int | getMax()
Return the size of the pool |
| void | put(Object o)
Add the object to the pool, silent nothing if the pool is full |
| void | set(Object o) |
| void | shutdown() |