public final class SimplePool
extends java.lang.Object
Constructor and Description |
---|
SimplePool() |
SimplePool(int max) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get()
Get an object from the pool, null if the pool is empty.
|
int |
getMax()
Return the size of the pool
|
void |
put(java.lang.Object o)
Adds the given object to the pool, and does nothing if the pool is full
|
Copyright ? 2000-2004 Apache Software Foundation. All Rights Reserved.