kz.greetgo.logging.zookeeper.core.ZookeeperConnectParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo-logging-zookeeper Show documentation
Show all versions of greetgo-logging-zookeeper Show documentation
Logging mechanism using in greetgo!
package kz.greetgo.logging.zookeeper.core;
import org.apache.curator.framework.AuthInfo;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.RetryNTimes;
import org.apache.zookeeper.client.ZKClientConfig;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.IntSupplier;
import java.util.function.Supplier;
@SuppressWarnings("unused")
public class ZookeeperConnectParams {
private IntSupplier sessionTimeoutMillis = () -> 3000;
private IntSupplier connectTimeoutMillis = () -> 25000;
private IntSupplier maxRetries = () -> 3;
private IntSupplier sleepBetweenRetriesMillis = () -> 100;
private Supplier connectStr = null;
private IntSupplier retriesOnSessionExpiredException = () -> 3;
private Supplier