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