|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionHarvestingCallback
The callback interface for the connection harvesting support. Applications using the connection harvesting feature can optionally provide an implementation of this interface.
The callback object is registered with each harvestable pooled connection or using any of its logical connection proxies, allowing applications to perform customized cleanup tasks when this connection is harvested by the pool. Thecleanup(...)
method is invoked when a borrowed connection
is harvested by the Universal Connection Pool. Applications using
java.sql.Connection
, for instance, can invoke the
close()
and rollback()
methods on this Connection
within a cleanup()
implementation.
It is an error to register more than one connection harvesting
callback on the same connection. Any such attempt results
in a UniversalConnectionPoolException
at the pool layer
or an exception specific to the type of a Universal Connection Pool
Adapter (for example, JDBC, JCA, and so forth).
UniversalConnectionPool
,
UniversalPooledConnection
,
PoolDataSource
Method Summary | |
---|---|
boolean |
cleanup()
Cleans up a connection being harvested before the connetion is returned to the connection pool. |
Method Detail |
---|
boolean cleanup()
true
;
otherwise, return false
.
|
Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |