public class GoodForSecondsValidConnectionChecker extends JDBC4ValidConnectionChecker
Constructor and Description |
---|
GoodForSecondsValidConnectionChecker()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.sql.SQLException |
isValidConnection(java.sql.Connection c)
Checks the connection is valid
|
void |
setGoodForSeconds(int v)
Set the good for seconds
|
void |
setMaxKeepSize(int v)
Set the max keep size
|
getPingTimeOut, setPingTimeOut
public GoodForSecondsValidConnectionChecker()
public java.sql.SQLException isValidConnection(java.sql.Connection c)
isValidConnection
in interface ValidConnectionChecker
isValidConnection
in class JDBC4ValidConnectionChecker
c
- the connectionpublic void setGoodForSeconds(int v)
v
- The valuepublic void setMaxKeepSize(int v)
v
- The valueCopyright © 2014 IronJacamar (http://www.ironjacamar.org)