Interface ConnectionValidator
-
- All Known Implementing Classes:
DriverManagerConnectionProviderImpl,SharedDriverManagerConnectionProviderImpl
public interface ConnectionValidatorContract for validating JDBC connections.
-
-
Field Summary
Fields Modifier and Type Field Description static ConnectionValidatorALWAYS_VALID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisValid(Connection connection)Checks if the given connection is still valid.
-
-
-
Field Detail
-
ALWAYS_VALID
static final ConnectionValidator ALWAYS_VALID
-
-
Method Detail
-
isValid
boolean isValid(Connection connection) throws SQLException
Checks if the given connection is still valid.- Returns:
trueif the connection is valid,falseotherwise- Throws:
SQLException- when an error happens due to the connection usage leading to a connection close
-
-