Skip navigation links

Oracle® Universal Connection Pool for JDBC Java API Reference
11g Release 2 (11.2)

E12826-01


oracle.ucp.jdbc
Interface ConnectionWithAbandonedTimeout


public interface ConnectionWithAbandonedTimeout

Interface supporting abandoned connection timeout handling for JDBC java.sql.Connections. <p/> 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. <p/> The Universal Connection Pool supports the abandonedConnectionTimeout pool property and provides AbandonedConnectionTimeoutCallback to allow customized handling of abandoned connections. <p/> Applications use this interface along with the abandonedConnectionTimeout properties for complete abandoned-connection handlings.

See Also:
PoolDataSource, AbandonedConnectionTimeoutCallback

Method Summary
 void registerAbandonedConnectionTimeoutCallback(AbandonedConnectionTimeoutCallback cbk)
          Registers AbandonedConnectionTimeoutCallback with this connection.
 void removeAbandonedConnectionTimeoutCallback()
          Removes the AbandonedConnectionTimeoutCallback object registered with this connection, if any.

 

Method Detail

registerAbandonedConnectionTimeoutCallback

void registerAbandonedConnectionTimeoutCallback(AbandonedConnectionTimeoutCallback cbk)
                                                throws java.sql.SQLException
Registers AbandonedConnectionTimeoutCallback with this connection.
Parameters:
cbk - The AbandonedConnectionTimeoutCallback object to be registered.
Throws:
java.sql.SQLException - If there is a callback already registered with the connection.

removeAbandonedConnectionTimeoutCallback

void removeAbandonedConnectionTimeoutCallback()
                                              throws java.sql.SQLException
Removes the AbandonedConnectionTimeoutCallback object registered with this connection, if any.
Throws:
java.sql.SQLException - If callback removal fails.

Skip navigation links

Oracle® Universal Connection Pool for JDBC Java API Reference
11g Release 2 (11.2)

E12826-01


Copyright © 2008, 2009, Oracle and/or its affiliates. All rights reserved.