| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tomcat.util.collections.SimplePool
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 | |
 java.lang.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(java.lang.Object o)
Add the object to the pool, silent nothing if the pool is full  | 
 void | 
set(java.lang.Object o)
 | 
 void | 
shutdown()
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int DEFAULT_SIZE
| Constructor Detail | 
public SimplePool()
public SimplePool(int size)
public SimplePool(int size,
                  int max)
| Method Detail | 
public void set(java.lang.Object o)
public void put(java.lang.Object o)
public java.lang.Object get()
public int getMax()
public int getCount()
public void shutdown()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||