public interface Listener
FailoverProxy getProxy()
void setProxy(FailoverProxy proxy)
void initializeConnection()
throws QueryException
QueryExceptionvoid preExecute()
throws QueryException
QueryExceptionvoid preClose()
throws SQLException
SQLExceptionvoid reconnectFailedConnection(SearchFilter filter) throws QueryException
QueryExceptionvoid switchReadOnlyConnection(Boolean readonly) throws QueryException
QueryExceptionHandleErrorResult primaryFail(Method method, Object[] args) throws Throwable
ThrowableObject invoke(Method method, Object[] args, Protocol specificProtocol) throws Throwable
ThrowableHandleErrorResult handleFailover(QueryException qe, Method method, Object[] args, Protocol protocol) throws Throwable
Throwablevoid foundActiveMaster(Protocol protocol) throws QueryException
QueryExceptionSet<HostAddress> getBlacklistKeys()
void addToBlacklist(HostAddress hostAddress)
void removeFromBlacklist(HostAddress hostAddress)
void syncConnection(Protocol from, Protocol to) throws QueryException
QueryExceptionUrlParser getUrlParser()
void throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster, QueryException queryException, boolean reconnected) throws QueryException
QueryExceptionboolean isAutoReconnect()
int getRetriesAllDown()
boolean isExplicitClosed()
void reconnect()
throws QueryException
QueryExceptionboolean 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 QueryException
QueryExceptionCopyright © 2017. All rights reserved.