|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.collections.SimplePool
public final class 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
Deprecated. |
Constructor Summary | |
---|---|
SimplePool()
Deprecated. |
|
SimplePool(int size)
Deprecated. |
|
SimplePool(int size,
int max)
Deprecated. |
Method Summary | |
---|---|
java.lang.Object |
get()
Deprecated. Get an object from the pool, null if the pool is empty. |
int |
getCount()
Deprecated. Number of object in the pool |
int |
getMax()
Deprecated. Return the size of the pool |
void |
put(java.lang.Object o)
Deprecated. Add the object to the pool, silent nothing if the pool is full |
void |
set(java.lang.Object o)
Deprecated. |
void |
shutdown()
Deprecated. |
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()
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |