All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.despegar.jdbc.galera.settings.DiscoverSettings Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.0.20
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy