public interface ReaderFailoverHandler
| Modifier and Type | Method and Description |
|---|---|
ReaderFailoverResult |
failover(java.util.List<HostInfo> hosts,
HostInfo currentHost)
Called to start Reader Failover Process.
|
ReaderFailoverResult |
getReaderConnection(java.util.List<HostInfo> hostList)
Called to get any available reader connection.
|
ReaderFailoverResult failover(java.util.List<HostInfo> hosts, HostInfo currentHost) throws java.sql.SQLException
hosts - Cluster current topology.currentHost - The currently connected host that has failed.ReaderFailoverResult The results of this process.java.sql.SQLExceptionReaderFailoverResult getReaderConnection(java.util.List<HostInfo> hostList) throws java.sql.SQLException
hostList - Cluster current topology.ReaderFailoverResult The results of this process.java.sql.SQLException