Package com.mysql.cj.jdbc.ha.ca
Interface WriterFailoverHandler
- All Known Implementing Classes:
ClusterAwareWriterFailoverHandler
public interface WriterFailoverHandler
Interface for Writer Failover Process handler. This handler implements all necessary logic to try
to reconnect to a current writer host or to a newly elected writer.
-
Method Summary
Modifier and Type Method Description WriterFailoverResult
failover(java.util.List<HostInfo> currentTopology)
Called to start Writer Failover Process.
-
Method Details
-
failover
WriterFailoverResult failover(java.util.List<HostInfo> currentTopology) throws java.sql.SQLExceptionCalled to start Writer Failover Process.- Parameters:
currentTopology
- Cluster current topology- Returns:
WriterFailoverResult
The results of this process.- Throws:
java.sql.SQLException
-