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
public class GoodForSecondsValidConnectionChecker extends JDBC4ValidConnectionChecker
GoodForSeconds connection validation- Author:
- Jesper Pedersen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GoodForSecondsValidConnectionChecker()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLExceptionisValidConnection(Connection c)Checks the connection is validvoidsetGoodForSeconds(int v)Set the good for secondsvoidsetMaxKeepSize(int v)Set the max keep size-
Methods inherited from class org.jboss.jca.adapters.jdbc.extensions.novendor.JDBC4ValidConnectionChecker
getPingTimeOut, setPingTimeOut
-
-
-
-
Method Detail
-
isValidConnection
public SQLException isValidConnection(Connection c)
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
-
-