Class BaseRolloutStrategy


  • @Generated(value="cd.connect.openapi.Jersey3ApiGenerator",
               date="2022-11-02T19:35:08.639013+13:00[Pacific/Auckland]")
    public class BaseRolloutStrategy
    extends java.lang.Object
    if the feature in an environment is different from its default, this will be the reason for it. a rollout strategy is defined at the Application level and then applied to a specific feature value. When they are copied to the cache layer they are cloned and the feature value for that strategy is inserted into the clone and those are published.
    • Constructor Detail

      • BaseRolloutStrategy

        public BaseRolloutStrategy()
    • Method Detail

      • getId

        public java.lang.String getId()
        Get id
        Returns:
        id
      • setId

        public void setId​(@Nullable
                          @Nullable java.lang.String id)
      • percentage

        public BaseRolloutStrategy percentage​(@Nullable
                                              @Nullable java.lang.Integer percentage)
      • getPercentage

        public java.lang.Integer getPercentage()
        value between 0 and 1000000 - for four decimal places
        Returns:
        percentage
      • setPercentage

        public void setPercentage​(@Nullable
                                  @Nullable java.lang.Integer percentage)
      • percentageAttributes

        public BaseRolloutStrategy percentageAttributes​(@Nullable
                                                        @Nullable java.util.List<java.lang.String> percentageAttributes)
      • addPercentageAttributesItem

        public BaseRolloutStrategy addPercentageAttributesItem​(java.lang.String percentageAttributesItem)
      • getPercentageAttributes

        public java.util.List<java.lang.String> getPercentageAttributes()
        if you don't wish to apply percentage based on user id, you can use one or more attributes defined here
        Returns:
        percentageAttributes
      • setPercentageAttributes

        public void setPercentageAttributes​(@Nullable
                                            @Nullable java.util.List<java.lang.String> percentageAttributes)
      • getValue

        public java.lang.Object getValue()
        when we attach the RolloutStrategy for Dacha or SSE this lets us push the value out. Only visible in SDK and SSE Edge.
        Returns:
        value
      • setValue

        public void setValue​(@Nullable
                             @Nullable java.lang.Object value)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object