|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.pool.PoolContainer
PoolContainer is the storage for a given pool.
| Constructor Summary | |
PoolContainer(String name,
PoolFiller pf)
Create a new PoolContainer for a pool with a given name, and filler. |
|
PoolContainer(String name,
PoolFiller pf,
SpyConfig conf)
Create a new PoolContainer for a pool with a given name, and filler. |
|
| Method Summary | |
int |
availableObjects()
Find out how many objects are available in this pool. |
String |
getName()
Get the name of the pool. |
PooledObject |
getObject()
Get an object from the pool. |
void |
prune()
Remove any object that is not checked out, as long as we stay above our minimum object requirement. |
String |
toString()
debugging tool, dump out the current state of the pool |
int |
totalObjects()
Find out how many objects are in this pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PoolContainer(String name,
PoolFiller pf,
SpyConfig conf)
throws PoolException
name - name of the poolpf - the PoolFiller to useconf - a SpyConfig object that should describe the pool
parameters.
PoolException - when something bad happens
public PoolContainer(String name,
PoolFiller pf)
throws PoolException
name - name of the poolpf - the PoolFiller to use
PoolException - when something bad happens| Method Detail |
public String getName()
public PooledObject getObject()
throws PoolException
PoolException - when something bad happenspublic String toString()
public int availableObjects()
public void prune()
throws PoolException
This method should only be called from the ObjectPoolCleaner -- please don't call it directly.
PoolException - when something bad happenspublic int totalObjects()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||