Class ClusterAwareWriterFailoverHandler

java.lang.Object
com.mysql.cj.jdbc.ha.ca.ClusterAwareWriterFailoverHandler
All Implemented Interfaces:
WriterFailoverHandler

public class ClusterAwareWriterFailoverHandler
extends java.lang.Object
implements WriterFailoverHandler
An implementation of WriterFailoverHandler.

Writer Failover Process goal is to re-establish connection to a writer. Connection to a writer may be disrupted either by temporary network issue, or due to writer host unavailability during cluster failover. This handler tries both approaches in parallel: 1) try to re-connect to the same writer host, 2) try to update cluster topology and connect to a newly elected writer.