|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PoolCallback
Represents a callback used to release or remove a PooledConnection back into the pool. A pooled connection typically has a close method that its clients use to indicate that they no longer need the connection. This close method should use the methods defined in this interface to interact with the connection pool to return the connection to the pool. The methods in this interface are typically invoked by a PooledConnection. The methods in this interface are typically implemented by the connection pool manager.
| Method Summary | |
|---|---|
boolean |
releasePooledConnection(PooledConnection conn)
Releases a useable connection back to the pool. |
boolean |
removePooledConnection(PooledConnection conn)
Removes a connection from the pool. |
| Method Detail |
|---|
boolean releasePooledConnection(PooledConnection conn)
conn - The connection to release.
boolean removePooledConnection(PooledConnection conn)
conn - The connection to return.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||