primary
primary node
private HostAddress(String host,
int port,
Boolean primary) booleanvoidforceThreadsConnected(long threadsConnected,
long threadConnectedTimeout) static HostAddressstatic HostAddressprivate static intinthashCode()static List<HostAddress> private static HostAddressparseParameterHostAddress(String str,
HaMode haMode,
boolean first) private static HostAddressparseSimpleHostAddress(String str,
HaMode haMode,
boolean first) voidsetThreadsConnected(long threadsConnected) toString()host - hostport - portprimary - is primaryhost - host (DNS/IP)port - porthost - host (DNS/IP)port - portprimary - is primaryspec - list of endpoints in one of the forms 1 - host1,....,hostN:port (missing port
default to MariaDB default 3306 2 - host:port,...,host:porthaMode - High availability modeSQLException - for wrong specSQLExceptionSQLExceptionSQLException