|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wiley.posa3.pooling.ConnectionPool
ConnectionPool is a concrete implementation of the Pool interface and provides a pool of connecton objects. When a user tries to acquire a connection, the connection object would be fetched from the ConnectionPool. Similarly, when the user releases the connection, it would be returned back to the collection.
| Constructor Summary | |
ConnectionPool()
|
|
| Method Summary | |
Resource |
acquire()
Acquire a connection from the pool. |
void |
release(Resource resource)
Release the connection back to the pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionPool()
| Method Detail |
public Resource acquire()
acquire in interface Poolpublic void release(Resource resource)
release in interface Poolresource - the connection that should be put back in the pool.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||