public interface Listener
FailoverProxy getProxy()
void setProxy(FailoverProxy proxy)
void initializeConnection()
throws SQLException
SQLExceptionvoid preExecute()
throws SQLException
SQLExceptionvoid preClose()
void reconnectFailedConnection(SearchFilter filter) throws SQLException
SQLExceptionvoid switchReadOnlyConnection(Boolean readonly) throws SQLException
SQLExceptionHandleErrorResult primaryFail(Method method, Object[] args, boolean killCmd) throws Throwable
ThrowableObject invoke(Method method, Object[] args, Protocol specificProtocol) throws Throwable
ThrowableHandleErrorResult handleFailover(SQLException qe, Method method, Object[] args, Protocol protocol) throws Throwable
Throwablevoid foundActiveMaster(Protocol protocol) throws SQLException
SQLExceptionSet<HostAddress> getBlacklistKeys()
void addToBlacklist(HostAddress hostAddress)
void removeFromBlacklist(HostAddress hostAddress)
void syncConnection(Protocol from, Protocol to) throws SQLException
SQLExceptionUrlParser getUrlParser()
void throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, SQLException queryException, boolean reconnected) throws SQLException
SQLExceptionboolean isAutoReconnect()
int getRetriesAllDown()
boolean isExplicitClosed()
void reconnect()
throws SQLException
SQLExceptionboolean isReadOnly()
boolean isClosed()
Protocol getCurrentProtocol()
boolean hasHostFail()
boolean canRetryFailLoop()
SearchFilter getFilterForFailedHost()
boolean isMasterConnected()
boolean setMasterHostFail()
boolean isMasterHostFail()
long getLastQueryNanos()
boolean checkMasterStatus(SearchFilter searchFilter)
void rePrepareOnSlave(ServerPrepareResult oldServerPrepareResult, boolean mustExecuteOnMaster) throws SQLException
SQLExceptionvoid reset()
throws SQLException
SQLExceptionCopyright © 2017. All rights reserved.