public interface Listener
| Modifier and Type | Method and Description |
|---|---|
void |
foundActiveMaster(Protocol protocol) |
Map<HostAddress,Long> |
getBlacklist() |
int |
getInitialTimeout() |
JDBCUrl |
getJdbcUrl() |
FailoverProxy |
getProxy() |
int |
getRetriesAllDown() |
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) |
void setProxy(FailoverProxy proxy)
FailoverProxy getProxy()
void initializeConnection()
throws QueryException
QueryExceptionvoid preExecute()
throws QueryException
QueryExceptionvoid preClose()
throws SQLException
SQLExceptionboolean shouldReconnect()
void reconnectFailedConnection(SearchFilter filter) throws QueryException
QueryExceptionvoid switchReadOnlyConnection(Boolean readonly) throws QueryException
QueryExceptionHandleErrorResult primaryFail(Method method, Object[] args) throws Throwable
ThrowableHandleErrorResult handleFailover(Method method, Object[] args) throws Throwable
Throwablevoid foundActiveMaster(Protocol protocol) throws QueryException
QueryExceptionMap<HostAddress,Long> getBlacklist()
void syncConnection(Protocol from, Protocol to) throws QueryException
QueryExceptionJDBCUrl getJdbcUrl()
void throwFailoverMessage(QueryException queryException, boolean reconnected) throws QueryException
QueryExceptionint getInitialTimeout()
boolean isAutoReconnect()
int getRetriesAllDown()
boolean isExplicitClosed()
void setExplicitClosed(boolean explicitClosed)
void reconnect()
throws QueryException
QueryExceptionboolean isReadOnly()
boolean isClosed()
Copyright © 2015. All rights reserved.