|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.pool.PoolContainer
public class PoolContainer
PoolContainer is the storage for a given pool.
| Constructor Summary | |
|---|---|
PoolContainer(java.lang.String nm,
PoolFiller pf)
Create a new PoolContainer for a pool with a given name, and filler. |
|
PoolContainer(java.lang.String nm,
PoolFiller pf,
SpyConfig cnf)
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. |
java.lang.String |
getName()
Get the name of the pool. |
PooledObject |
getObject()
Get an object from the pool. |
java.lang.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 net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PoolContainer(java.lang.String nm,
PoolFiller pf,
SpyConfig cnf)
throws PoolException
nm - name of the poolpf - the PoolFiller to usecnf - a SpyConfig object that should describe the pool
parameters.
PoolException - when something bad happens
public PoolContainer(java.lang.String nm,
PoolFiller pf)
throws PoolException
name - name of the poolpf - the PoolFiller to use
PoolException - when something bad happens| Method Detail |
|---|
public java.lang.String getName()
public PooledObject getObject()
throws PoolException
PoolException - when something bad happenspublic java.lang.String toString()
toString in class java.lang.Objectpublic int availableObjects()
public int totalObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||