|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface ResourcePool
Interface that describes a generic resource pool.
| Method Summary | |
|---|---|
void |
destroy()
Destroy this resource pool. |
java.lang.Object |
getResource()
Returns a resource from this pool |
java.lang.String |
getStatus()
Return the status of this resource pool. |
void |
init(java.lang.String name,
XMLProperties xmlProps)
Initialise the resources that the pool implementation will provide here. |
void |
releaseResource(java.lang.Object resource)
Release a resource back into the pool. |
| Method Detail |
|---|
void init(java.lang.String name,
XMLProperties xmlProps)
throws ResourcePoolException
name - Unique name for this pool.xmlProps - XML configuration properties.
ResourcePoolException - if the pool cannot be initialised.
java.lang.Object getResource()
throws ResourcePoolException
ResourcePoolException - if a resource could not be returned from
the pool.void releaseResource(java.lang.Object resource)
resource - Object being released to the pool.java.lang.String getStatus()
void destroy()
throws ResourcePoolException
ResourcePoolException - if this pool cannot be destroyed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||