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:
  • Constructor Details

    • GoodForSecondsValidConnectionChecker

      public GoodForSecondsValidConnectionChecker()
      Constructor
  • Method Details

    • isValidConnection

      public SQLException isValidConnection(Connection c)
      Checks the connection is valid
      Specified by:
      isValidConnection in interface ValidConnectionChecker
      Overrides:
      isValidConnection in class JDBC4ValidConnectionChecker
      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