|
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 ValidConnection
This interface allows JDBC applications to easily and quickly determine the usability of a java.sql.Connection
object and to identify connection objects that should no longer be used for connection pooling. <p/> The isValid()
method can be used for checking a connection or used in combination with a retry mechanism, such as one in response to Fast Connection Failover handling. <p/> The setInvalid()
method is used to identify connections that are no longer suitable to be used in connection pooling. Once setInvalid()
is called on a connection, the connection will not be returned to the pool instance upon close()
but will instead be physically closed and removed from the pool instance.
Method Summary | |
---|---|
boolean |
isValid() Indicates whether this connection is usable. |
void |
setInvalid() Indicates that this connection is no longer valid for use. |
Method Detail |
---|
boolean isValid() throws java.sql.SQLException
true
if so; otherwise, false
.java.sql.SQLException
- If an error occurs.void setInvalid() throws java.sql.SQLException
close()
but is instead physically closed and removed from the pool instance.java.sql.SQLException
- If an error occurs.
|
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 |