Package oracle.ucp.jdbc
Interface ConnectionWithAbandonedTimeout
-
public interface ConnectionWithAbandonedTimeoutInterface supporting abandoned connection timeout handling for JDBCjava.sql.Connections.A connection is considered abandoned when there is no activity from the connection to the backend resource for an extended period. By default, the connection pool reclaims the physical connection when a connection is determined to be abandoned.
The Universal Connection Pool supports the
abandonedConnectionTimeoutpool property and providesAbandonedConnectionTimeoutCallbackto allow customized handling of abandoned connections.Applications use this interface along with the
abandonedConnectionTimeoutproperties for complete abandoned-connection handling.- See Also:
PoolDataSource,AbandonedConnectionTimeoutCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterAbandonedConnectionTimeoutCallback(AbandonedConnectionTimeoutCallback cbk)RegistersAbandonedConnectionTimeoutCallbackwith this connection.voidremoveAbandonedConnectionTimeoutCallback()Removes theAbandonedConnectionTimeoutCallbackobject registered with this connection, if any.
-
-
-
Method Detail
-
registerAbandonedConnectionTimeoutCallback
void registerAbandonedConnectionTimeoutCallback(AbandonedConnectionTimeoutCallback cbk) throws java.sql.SQLException
RegistersAbandonedConnectionTimeoutCallbackwith this connection.- Parameters:
cbk- TheAbandonedConnectionTimeoutCallbackobject to be registered.- Throws:
java.sql.SQLException- If there is a callback already registered with the connection.
-
removeAbandonedConnectionTimeoutCallback
void removeAbandonedConnectionTimeoutCallback() throws java.sql.SQLExceptionRemoves theAbandonedConnectionTimeoutCallbackobject registered with this connection, if any.- Throws:
java.sql.SQLException- If callback removal fails.
-
-