Class WeightEntry

    • Constructor Detail

      • WeightEntry

        public WeightEntry()
      • WeightEntry

        public WeightEntry​(WeightEntry source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getServiceId

        public String getServiceId()
        Get 服务id
        Returns:
        ServiceId 服务id
      • setServiceId

        public void setServiceId​(String ServiceId)
        Set 服务id
        Parameters:
        ServiceId - 服务id
      • getWeight

        public Long getWeight()
        Get 流量权重值,同 ServiceGroup 下 总和应为 100
        Returns:
        Weight 流量权重值,同 ServiceGroup 下 总和应为 100
      • setWeight

        public void setWeight​(Long Weight)
        Set 流量权重值,同 ServiceGroup 下 总和应为 100
        Parameters:
        Weight - 流量权重值,同 ServiceGroup 下 总和应为 100