Class RetentionRule

    • Constructor Detail

      • RetentionRule

        public RetentionRule()
      • RetentionRule

        public RetentionRule​(RetentionRule 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

      • getKey

        public String getKey()
        Get 支持的策略,可选值为latestPushedK(保留最新推送多少个版本)nDaysSinceLastPush(保留近天内推送)
        Returns:
        Key 支持的策略,可选值为latestPushedK(保留最新推送多少个版本)nDaysSinceLastPush(保留近天内推送)
      • setKey

        public void setKey​(String Key)
        Set 支持的策略,可选值为latestPushedK(保留最新推送多少个版本)nDaysSinceLastPush(保留近天内推送)
        Parameters:
        Key - 支持的策略,可选值为latestPushedK(保留最新推送多少个版本)nDaysSinceLastPush(保留近天内推送)
      • getValue

        public Long getValue()
        Get 规则设置下的对应值
        Returns:
        Value 规则设置下的对应值
      • setValue

        public void setValue​(Long Value)
        Set 规则设置下的对应值
        Parameters:
        Value - 规则设置下的对应值