|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.pool.GenericPool
public class GenericPool
A very simple implementation of a generic IPool.
| Constructor Summary | |
|---|---|
GenericPool(IPoolObjectFactory objectFactory)
|
|
| Method Summary | |
|---|---|
void |
checkin(Object object)
Add an object to the pool. |
Object |
checkout()
Get an object from the pool. |
void |
close()
Close the pool. |
void |
destroy(Object object)
Destroy an object previously allocated from the pool. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericPool(IPoolObjectFactory objectFactory)
| Method Detail |
|---|
public void checkin(Object object)
throws Exception
IPool
checkin in interface IPoolobject - The object to be added to the pool.
Exception
public Object checkout()
throws Exception
IPoolThis may be a reused object or a new one, up to the pool strategy and size.
checkout in interface IPoolException
public void close()
throws Exception
IPool
close in interface IPoolException
public void destroy(Object object)
throws Exception
IPool
destroy in interface IPoolobject - The object to be destroyed.
Exception
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||