java.lang.Object
growthbook.sdk.java.multiusermode.configurations.Options

public class Options extends Object
  • Constructor Details

  • Method Details

    • getRefreshingStrategy

      public FeatureRefreshStrategy getRefreshingStrategy()
    • getStickyBucketService

      @Nullable public StickyBucketService getStickyBucketService()
    • setInMemoryStickyBucketService

      public void setInMemoryStickyBucketService()
    • setGlobalAttributes

      public void setGlobalAttributes(@Nullable String attributesJson)
    • builder

      public static Options.OptionsBuilder builder()
    • getEnabled

      @Nullable public Boolean getEnabled()
      Whether globally all experiments are enabled (default: true) Switch to globally disable all experiments.
    • getIsQaMode

      public Boolean getIsQaMode()
      If true, random assignment is disabled and only explicitly forced variations are used.
    • getIsCacheDisabled

      public Boolean getIsCacheDisabled()
    • getAllowUrlOverrides

      public Boolean getAllowUrlOverrides()
      Boolean flag to allow URL overrides (default: false)
    • getUrl

      @Nullable public String getUrl()
    • getApiHost

      @Nullable public String getApiHost()
    • getClientKey

      @Nullable public String getClientKey()
    • getDecryptionKey

      @Nullable public String getDecryptionKey()
      Optional decryption Key. If this is not null, featuresJson should be an encrypted payload.
    • getStickyBucketIdentifierAttributes

      @Nullable public List<String> getStickyBucketIdentifierAttributes()
      List of user's attributes keys.
    • getTrackingCallBackWithUser

      @Nullable public TrackingCallbackWithUser getTrackingCallBackWithUser()
      A function that takes Experiment and ExperimentResult as arguments.
    • getFeatureUsageCallbackWithUser

      @Nullable public FeatureUsageCallbackWithUser getFeatureUsageCallbackWithUser()
      A function that takes String and FeatureResult as arguments. A callback that will be invoked every time a feature is viewed. Listen for feature usage events
    • getRefreshStrategy

      @Nullable public FeatureRefreshStrategy getRefreshStrategy()
      Strategy for building url
    • getGlobalAttributes

      @Nullable public com.google.gson.JsonObject getGlobalAttributes()
      Map of user attributes that are used to assign variations
    • getAttributesJson

      @Nullable public String getAttributesJson()
      String format of user attributes that are used to assign variations
    • getGlobalForcedFeatureValues

      @Nullable public Map<String,Object> getGlobalForcedFeatureValues()
      Manual force feature values
    • getGlobalForcedVariationsMap

      @Nullable public Map<String,Integer> getGlobalForcedVariationsMap()
      Force specific experiments to always assign a specific variation (used for QA)
    • getFeatureRefreshCallback

      @Nullable public FeatureRefreshCallback getFeatureRefreshCallback()
    • setEnabled

      public void setEnabled(@Nullable Boolean enabled)
      Whether globally all experiments are enabled (default: true) Switch to globally disable all experiments.
    • setIsQaMode

      public void setIsQaMode(Boolean isQaMode)
      If true, random assignment is disabled and only explicitly forced variations are used.
    • setIsCacheDisabled

      public void setIsCacheDisabled(Boolean isCacheDisabled)
    • setAllowUrlOverrides

      public void setAllowUrlOverrides(Boolean allowUrlOverrides)
      Boolean flag to allow URL overrides (default: false)
    • setUrl

      public void setUrl(@Nullable String url)
    • setApiHost

      public void setApiHost(@Nullable String apiHost)
    • setClientKey

      public void setClientKey(@Nullable String clientKey)
    • setDecryptionKey

      public void setDecryptionKey(@Nullable String decryptionKey)
      Optional decryption Key. If this is not null, featuresJson should be an encrypted payload.
    • setStickyBucketIdentifierAttributes

      public void setStickyBucketIdentifierAttributes(@Nullable List<String> stickyBucketIdentifierAttributes)
      List of user's attributes keys.
    • setStickyBucketService

      public void setStickyBucketService(@Nullable StickyBucketService stickyBucketService)
      Service that provide functionality of Sticky Bucketing
    • setTrackingCallBackWithUser

      public void setTrackingCallBackWithUser(@Nullable TrackingCallbackWithUser trackingCallBackWithUser)
      A function that takes Experiment and ExperimentResult as arguments.
    • setFeatureUsageCallbackWithUser

      public void setFeatureUsageCallbackWithUser(@Nullable FeatureUsageCallbackWithUser featureUsageCallbackWithUser)
      A function that takes String and FeatureResult as arguments. A callback that will be invoked every time a feature is viewed. Listen for feature usage events
    • setRefreshStrategy

      public void setRefreshStrategy(@Nullable FeatureRefreshStrategy refreshStrategy)
      Strategy for building url
    • setAttributesJson

      public void setAttributesJson(@Nullable String attributesJson)
      String format of user attributes that are used to assign variations
    • setGlobalForcedFeatureValues

      public void setGlobalForcedFeatureValues(@Nullable Map<String,Object> globalForcedFeatureValues)
      Manual force feature values
    • setGlobalForcedVariationsMap

      public void setGlobalForcedVariationsMap(@Nullable Map<String,Integer> globalForcedVariationsMap)
      Force specific experiments to always assign a specific variation (used for QA)
    • setFeatureRefreshCallback

      public void setFeatureRefreshCallback(@Nullable FeatureRefreshCallback featureRefreshCallback)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object