|
Oracle® Universal Connection Pool for JDBC Java API Reference 11g Release 2 (11.2) E12826-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionWithTimeToLiveTimeout
Interface supporting time-to-live connection timeout handling for JDBC java.sql.Connections
. <p/> A time-to-live connection allows a borrowed connection to remain borrowed only for a pre-determined period of time. When this period passes, this connection is reclaimed and put back into the connection pool. <p/> The Universal Connection Pool supports the timeToLiveConnectionTimeout
pool property and provides TimeToLiveConnectionTimeoutCallback
to allow customized handling of TTL timed-out connections. <p/> Applications use this interface along with the timeToLiveConnectionTimeout
properties for complete TTL-connection handlings.
PoolDataSource
, TimeToLiveConnectionTimeoutCallback
Method Summary | |
---|---|
void |
registerTimeToLiveConnectionTimeoutCallback(TimeToLiveConnectionTimeoutCallback cbk) Registers a time-to-live connection timeout callback with this connection. |
void |
removeTimeToLiveConnectionTimeoutCallback() Removes the TimeToLiveConnectionTimeoutCallback object registered with this connection, if any. |
Method Detail |
---|
void registerTimeToLiveConnectionTimeoutCallback(TimeToLiveConnectionTimeoutCallback cbk) throws java.sql.SQLException
cbk
- The TimeToLiveConnectionTimeoutCallback
object to be registered.java.sql.SQLException
- If there is a callback already registered with the connection.void removeTimeToLiveConnectionTimeoutCallback() throws java.sql.SQLException
TimeToLiveConnectionTimeoutCallback
object registered with this connection, if any.java.sql.SQLException
- If callback removal fails.
|
Oracle® Universal Connection Pool for JDBC Java API Reference 11g Release 2 (11.2) E12826-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |