src/main/java/com/tzavellas/poolng/ConnectionProcessor.java
boolean isValid(Connection c, Duration timeout) {
		if (! timeout.hasSeconds())
			throw new IllegalArgumentException("timeout must be zero or more seconds");
		try {
			return c.isValid((int)timeout.toSeconds());
		} catch (SQLException e) {
			return false;
		}
	}
/**
	 * Validate the specified connection.
	 * 
	 * Ask the JDBC driver to validate the connection in the specified timeout.
	 * 
	 * @param c the connection
	 * @param timeoutInSecs timeout in seconds
	 * @return true if valid. else false
	 */
Validate the specified connection.

Ask the JDBC driver to validate the connection in the specified timeout.

@param c the connection
@param timeoutInSecs timeout in seconds
@return true if valid. else false
Validate the specified connection . Ask the JDBC driver to validate the connection in the specified timeout . @param c the connection @param timeoutInSecs timeout in seconds @return true if valid . else false
boolean isValid(Connection c, Duration timeout) {
		if (! timeout.hasSeconds())
			throw new IllegalArgumentException("timeout must be zero or more seconds");
		try {
			return c.isValid((int)timeout.toSeconds());
		} catch (SQLException e) {
			return false;
		}
	}
boolean isValid ( Connection c , Duration timeout ) { if ( ! timeout . hasSeconds ( ) ) throw new IllegalArgumentException ( "timeout must be zero or more seconds" ) ; try { return c . isValid ( ( int ) timeout . toSeconds ( ) ) ; } catch ( SQLException e ) { return false ; } }
Validate the specified connection.
Validate the specified connection .