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

cn.flood.cloud.zk.properties.ZookeeperProperty Maven / Gradle / Ivy

The newest version!
package cn.flood.cloud.zk.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * zookeeper配置
 *
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "flood.zookeeper")
public class ZookeeperProperty {
    /**
     * zk连接集群,多个用逗号隔开
     */
    private String connectString;

    /**
     * 会话超时时间(毫秒)
     */
    private int sessionTimeout = 15000;

    /**
     * 连接超时时间(毫秒)
     */
    private int connectionTimeout = 15000;

    /**
     * 初始重试等待时间(毫秒)
     */
    private int baseSleepTime = 2000;

    /**
     * 重试最大次数
     */
    private int maxRetries = 10;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy