public interface Validator
Modifier and Type | Method and Description |
---|---|
boolean |
validate(java.sql.Connection connection,
int validateAction)
Validate a connection and return a boolean to indicate if it's valid.
|
boolean validate(java.sql.Connection connection, int validateAction)
connection
- the Connection object to testvalidateAction
- the action used. One of PooledConnection.VALIDATE_BORROW
,
PooledConnection.VALIDATE_IDLE
, PooledConnection.VALIDATE_INIT
or
PooledConnection.VALIDATE_RETURN
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.