
public class MySQLReplicationValidConnectionChecker extends Object implements ValidConnectionChecker, Serializable
This class is an implementation of ValidConnectionChecker for MySQL ReplicatedDriver. It supports both isValid and ping methods on the connection object.
Please note that the isValid method requires java 6 classes to be present.
The code was inspired by MySQLValidConnectionChecker. See it's javadoc for authors info. This code is released under the LGPL license.
| Constructor and Description |
|---|
MySQLReplicationValidConnectionChecker()
Initiates the ValidConnectionChecker implementation.
|
| Modifier and Type | Method and Description |
|---|---|
SQLException |
isValidConnection(Connection c)
Checks the connection is valid
|
public MySQLReplicationValidConnectionChecker()
public SQLException isValidConnection(Connection c)
isValidConnection in interface ValidConnectionCheckerc - the connectionCopyright © 2013 IronJacamar (http://www.ironjacamar.org)