|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPool
A pool of objects.
| 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. |
| Method Detail |
|---|
void checkin(Object object)
throws Exception
object - The object to be added to the pool.
Exception
Object checkout(long timeout)
throws Exception
This may be a reused object or a new one, up to the pool strategy and size.
timeout - The maximum time to wait for an instance to be available in
milliseconds. -1 will wait indefinitely, 0 will not wait.
Exception
void close()
throws Exception
Exception
void destroy(Object object)
throws Exception
object - 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 | |||||||||