类 FailoverConnectionProxy
- java.lang.Object
-
- com.mysql.cj.jdbc.ha.MultiHostConnectionProxy
-
- com.mysql.cj.jdbc.ha.FailoverConnectionProxy
-
- 所有已实现的接口:
InvocationHandler
public class FailoverConnectionProxy extends MultiHostConnectionProxy
A proxy for a dynamic com.mysql.cj.jdbc.JdbcConnection implementation that provides failover features for list of hosts. Connection switching occurs on communications related exceptions and/or user defined settings, namely when one of the conditions set in 'secondsBeforeRetrySource' or 'queriesBeforeRetrySource' is met.
-
-
字段概要
-
从类继承的字段 com.mysql.cj.jdbc.ha.MultiHostConnectionProxy
connectionUrl, lastExceptionDealtWith
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static JdbcConnectioncreateProxyInstance(ConnectionUrl connectionUrl)ObjectinvokeMore(Object proxy, Method method, Object[] args)-
从类继承的方法 com.mysql.cj.jdbc.ha.MultiHostConnectionProxy
allowedOnClosedConnection, getParentProxy, getProxy, invoke, propagateProxyDown, setProxy
-
-
-
-
方法详细资料
-
createProxyInstance
public static JdbcConnection createProxyInstance(ConnectionUrl connectionUrl) throws SQLException
- 抛出:
SQLException
-
-