com.despegar.jdbc.galera.settings.DiscoverSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of galera-java-client Show documentation
Show all versions of galera-java-client Show documentation
A simple Java client for MariaDB Galera Cluster and Percona XtraDB Cluster. It is designed to be an
alternative to connect JVM app to
MariaDB/Percona galera nodes without HAProxy
package com.despegar.jdbc.galera.settings;
import com.google.common.base.MoreObjects;
public class DiscoverSettings {
public final long discoverPeriod;
/**
* When this flag is true, donor nodes are marked as down, so you will not get connections from donor nodes.
*/
public final boolean ignoreDonor;
public DiscoverSettings(long discoverPeriod, boolean ignoreDonor) {
this.discoverPeriod = discoverPeriod;
this.ignoreDonor = ignoreDonor;
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("discoverPeriod", discoverPeriod)
.add("ignoreDonor", ignoreDonor)
.toString();
}
}