|
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(long timeout)
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(long timeout)
throws Exception
IPoolThis may be a reused object or a new one, up to the pool strategy and size.
checkout in interface IPooltimeout - The maximum time to wait for an instance to be available in
milliseconds. -1 will wait indefinitely, 0 will not wait.
Exception
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 | |||||||||