public interface Listener
Modifier and Type | Method and Description |
---|---|
void |
foundActiveMaster(Protocol protocol) |
Map<HostAddress,Long> |
getBlacklist() |
FailoverProxy |
getProxy() |
int |
getRetriesAllDown() |
UrlParser |
getUrlParser() |
HandleErrorResult |
handleFailover(Method method,
Object[] args) |
void |
initializeConnection() |
Object |
invoke(Method method,
Object[] args) |
boolean |
isAutoReconnect() |
boolean |
isClosed() |
boolean |
isExplicitClosed() |
boolean |
isReadOnly() |
void |
preClose() |
void |
preExecute() |
HandleErrorResult |
primaryFail(Method method,
Object[] args) |
void |
reconnect() |
void |
reconnectFailedConnection(SearchFilter filter) |
void |
setExplicitClosed(boolean explicitClosed) |
void |
setProxy(FailoverProxy proxy) |
boolean |
shouldReconnect() |
void |
switchReadOnlyConnection(Boolean readonly) |
void |
syncConnection(Protocol from,
Protocol to) |
void |
throwFailoverMessage(QueryException queryException,
boolean reconnected) |
FailoverProxy getProxy()
void setProxy(FailoverProxy proxy)
void initializeConnection() throws QueryException
QueryException
void preExecute() throws QueryException
QueryException
void preClose() throws SQLException
SQLException
boolean shouldReconnect()
void reconnectFailedConnection(SearchFilter filter) throws QueryException
QueryException
void switchReadOnlyConnection(Boolean readonly) throws QueryException
QueryException
HandleErrorResult primaryFail(Method method, Object[] args) throws Throwable
Throwable
HandleErrorResult handleFailover(Method method, Object[] args) throws Throwable
Throwable
void foundActiveMaster(Protocol protocol) throws QueryException
QueryException
Map<HostAddress,Long> getBlacklist()
void syncConnection(Protocol from, Protocol to) throws QueryException
QueryException
UrlParser getUrlParser()
void throwFailoverMessage(QueryException queryException, boolean reconnected) throws QueryException
QueryException
boolean isAutoReconnect()
int getRetriesAllDown()
boolean isExplicitClosed()
void setExplicitClosed(boolean explicitClosed)
void reconnect() throws QueryException
QueryException
boolean isReadOnly()
boolean isClosed()
Copyright © 2015. All rights reserved.