Class GoodForSecondsValidConnectionChecker
java.lang.Object
org.jboss.jca.adapters.jdbc.extensions.novendor.JDBC4ValidConnectionChecker
org.jboss.jca.adapters.jdbc.extensions.novendor.GoodForSecondsValidConnectionChecker
- All Implemented Interfaces:
Serializable,ValidConnectionChecker
GoodForSeconds connection validation
- Author:
- Jesper Pedersen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChecks the connection is validvoidsetGoodForSeconds(int v) Set the good for secondsvoidsetMaxKeepSize(int v) Set the max keep sizeMethods inherited from class org.jboss.jca.adapters.jdbc.extensions.novendor.JDBC4ValidConnectionChecker
getPingTimeOut, setPingTimeOut
-
Constructor Details
-
GoodForSecondsValidConnectionChecker
public GoodForSecondsValidConnectionChecker()Constructor
-
-
Method Details
-
isValidConnection
Checks the connection is valid- Specified by:
isValidConnectionin interfaceValidConnectionChecker- Overrides:
isValidConnectionin classJDBC4ValidConnectionChecker- Parameters:
c- the connection- Returns:
- Exception when not valid, null when valid
-
setGoodForSeconds
public void setGoodForSeconds(int v) Set the good for seconds- Parameters:
v- The value
-
setMaxKeepSize
public void setMaxKeepSize(int v) Set the max keep size- Parameters:
v- The value
-