public interface ReaderFailoverHandler
Modifier and Type | Method and Description |
---|---|
ReaderFailoverResult |
failover(List<HostInfo> hosts,
@Nullable HostInfo currentHost)
Called to start Reader Failover Process.
|
ReaderFailoverResult |
getReaderConnection(List<HostInfo> hostList)
Called to get any available reader connection.
|
ReaderFailoverResult failover(List<HostInfo> hosts, @Nullable HostInfo currentHost) throws SQLException
hosts
- Cluster current topology.currentHost
- The currently connected host that has failed.ReaderFailoverResult
The results of this process.SQLException
- if an error occursReaderFailoverResult getReaderConnection(List<HostInfo> hostList) throws SQLException
hostList
- Cluster current topology.ReaderFailoverResult
The results of this process.SQLException
- if an error occursCopyright © 1997-2021 PostgreSQL Global Development Group. All Rights Reserved.