Class EtcdProperties

java.lang.Object
com.bytedesk.core.etcd.EtcdProperties

@Component @ConfigurationProperties(prefix="bytedesk.etcd") public class EtcdProperties extends Object
etcd 配置属性
Author:
bytedesk.com
  • Field Details

    • endpoints

      private String[] endpoints
      etcd 服务器端点列表 格式: http://host:port
    • enabled

      private boolean enabled
      是否启用 etcd
    • connectTimeout

      private long connectTimeout
      连接超时时间(毫秒)
    • requestTimeout

      private long requestTimeout
      请求超时时间(毫秒)
    • namespace

      private String namespace
      命名空间/前缀
    • username

      private String username
      用户名(如果需要认证)
    • password

      private String password
      密码(如果需要认证)
    • leaseTtl

      private long leaseTtl
      租约 TTL(秒)- 用于服务注册等场景
    • leaseKeepAliveInterval

      private long leaseKeepAliveInterval
      租约续期间隔(秒)
  • Constructor Details

    • EtcdProperties

      public EtcdProperties()