public class MySQLReplicationValidConnectionChecker extends java.lang.Object implements ValidConnectionChecker, java.io.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 |
---|---|
java.sql.SQLException |
isValidConnection(java.sql.Connection c)
Checks the connection is valid
|
public MySQLReplicationValidConnectionChecker()
public java.sql.SQLException isValidConnection(java.sql.Connection c)
isValidConnection
in interface ValidConnectionChecker
c
- the connectionCopyright © 2013 IronJacamar (http://www.ironjacamar.org)