Class Options
java.lang.Object
growthbook.sdk.java.multiusermode.configurations.Options
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionOptions(Boolean enabled, Boolean isQaMode, Boolean isCacheDisabled, Boolean allowUrlOverrides, String url, String apiHost, String clientKey, String decryptionKey, List<String> stickyBucketIdentifierAttributes, StickyBucketService stickyBucketService, TrackingCallbackWithUser trackingCallBackWithUser, FeatureUsageCallbackWithUser featureUsageCallbackWithUser, FeatureRefreshStrategy refreshStrategy, FeatureRefreshCallback featureRefreshCallback, com.google.gson.JsonObject globalAttributes, Map<String, Object> globalForcedFeatureValues, Map<String, Integer> globalForcedVariationsMap, GbCacheManager cacheManager, CacheMode cacheMode, String cacheDirectory) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic Options.OptionsBuilderbuilder()booleanBoolean flag to allow URL overrides (default: false)String format of user attributes that are used to assign variationsOptional decryption Key.Whether globally all experiments are enabled (default: true) Switch to globally disable all experiments.A function that takesStringandFeatureResultas arguments.com.google.gson.JsonObjectMap of user attributes that are used to assign variationsManual force feature valuesForce specific experiments to always assign a specific variation (used for QA)If true, random assignment is disabled and only explicitly forced variations are used.Strategy for building urlList of user's attributes keys.A function that takesExperimentandExperimentResultas arguments.getUrl()inthashCode()voidsetAllowUrlOverrides(Boolean allowUrlOverrides) Boolean flag to allow URL overrides (default: false)voidsetApiHost(String apiHost) voidsetAttributesJson(String attributesJson) String format of user attributes that are used to assign variationsvoidsetCacheDirectory(String cacheDirectory) voidsetCacheManager(GbCacheManager cacheManager) voidsetCacheMode(CacheMode cacheMode) voidsetClientKey(String clientKey) voidsetDecryptionKey(String decryptionKey) Optional decryption Key.voidsetEnabled(Boolean enabled) Whether globally all experiments are enabled (default: true) Switch to globally disable all experiments.voidsetFeatureRefreshCallback(FeatureRefreshCallback featureRefreshCallback) voidsetFeatureUsageCallbackWithUser(FeatureUsageCallbackWithUser featureUsageCallbackWithUser) A function that takesStringandFeatureResultas arguments.voidsetGlobalAttributes(String attributesJson) voidsetGlobalForcedFeatureValues(Map<String, Object> globalForcedFeatureValues) Manual force feature valuesvoidsetGlobalForcedVariationsMap(Map<String, Integer> globalForcedVariationsMap) Force specific experiments to always assign a specific variation (used for QA)voidvoidsetIsCacheDisabled(Boolean isCacheDisabled) voidsetIsQaMode(Boolean isQaMode) If true, random assignment is disabled and only explicitly forced variations are used.voidsetRefreshStrategy(FeatureRefreshStrategy refreshStrategy) Strategy for building urlvoidsetStickyBucketIdentifierAttributes(List<String> stickyBucketIdentifierAttributes) List of user's attributes keys.voidsetStickyBucketService(StickyBucketService stickyBucketService) Service that provide functionality of Sticky BucketingvoidsetTrackingCallBackWithUser(TrackingCallbackWithUser trackingCallBackWithUser) A function that takesExperimentandExperimentResultas arguments.voidtoString()
- 
Constructor Details- 
Optionspublic Options(@Nullable Boolean enabled, Boolean isQaMode, @Nullable Boolean isCacheDisabled, Boolean allowUrlOverrides, @Nullable String url, @Nullable String apiHost, @Nullable String clientKey, @Nullable String decryptionKey, @Nullable List<String> stickyBucketIdentifierAttributes, @Nullable StickyBucketService stickyBucketService, @Nullable TrackingCallbackWithUser trackingCallBackWithUser, @Nullable FeatureUsageCallbackWithUser featureUsageCallbackWithUser, @Nullable FeatureRefreshStrategy refreshStrategy, @Nullable FeatureRefreshCallback featureRefreshCallback, @Nullable com.google.gson.JsonObject globalAttributes, @Nullable Map<String, Object> globalForcedFeatureValues, @Nullable Map<String, Integer> globalForcedVariationsMap, @Nullable GbCacheManager cacheManager, @Nullable CacheMode cacheMode, @Nullable String cacheDirectory) 
 
- 
- 
Method Details- 
getRefreshingStrategy
- 
getCacheMode
- 
getCacheDirectory
- 
getStickyBucketService
- 
setInMemoryStickyBucketServicepublic void setInMemoryStickyBucketService()
- 
setGlobalAttributes
- 
builder
- 
getEnabledWhether globally all experiments are enabled (default: true) Switch to globally disable all experiments.
- 
getIsQaModeIf true, random assignment is disabled and only explicitly forced variations are used.
- 
getIsCacheDisabled
- 
getAllowUrlOverridesBoolean flag to allow URL overrides (default: false)
- 
getUrl
- 
getApiHost
- 
getClientKey
- 
getDecryptionKeyOptional decryption Key. If this is not null, featuresJson should be an encrypted payload.
- 
getStickyBucketIdentifierAttributesList of user's attributes keys.
- 
getTrackingCallBackWithUserA function that takesExperimentandExperimentResultas arguments.
- 
getFeatureUsageCallbackWithUserA function that takesStringandFeatureResultas arguments. A callback that will be invoked every time a feature is viewed. Listen for feature usage events
- 
getRefreshStrategyStrategy for building url
- 
getGlobalAttributes@Nullable public com.google.gson.JsonObject getGlobalAttributes()Map of user attributes that are used to assign variations
- 
getAttributesJsonString format of user attributes that are used to assign variations
- 
getGlobalForcedFeatureValuesManual force feature values
- 
getGlobalForcedVariationsMapForce specific experiments to always assign a specific variation (used for QA)
- 
getFeatureRefreshCallback
- 
getCacheManager
- 
setEnabledWhether globally all experiments are enabled (default: true) Switch to globally disable all experiments.
- 
setIsQaModeIf true, random assignment is disabled and only explicitly forced variations are used.
- 
setIsCacheDisabled
- 
setAllowUrlOverridesBoolean flag to allow URL overrides (default: false)
- 
setUrl
- 
setApiHost
- 
setClientKey
- 
setDecryptionKeyOptional decryption Key. If this is not null, featuresJson should be an encrypted payload.
- 
setStickyBucketIdentifierAttributespublic void setStickyBucketIdentifierAttributes(@Nullable List<String> stickyBucketIdentifierAttributes) List of user's attributes keys.
- 
setStickyBucketServiceService that provide functionality of Sticky Bucketing
- 
setTrackingCallBackWithUserpublic void setTrackingCallBackWithUser(@Nullable TrackingCallbackWithUser trackingCallBackWithUser) A function that takesExperimentandExperimentResultas arguments.
- 
setFeatureUsageCallbackWithUserpublic void setFeatureUsageCallbackWithUser(@Nullable FeatureUsageCallbackWithUser featureUsageCallbackWithUser) A function that takesStringandFeatureResultas arguments. A callback that will be invoked every time a feature is viewed. Listen for feature usage events
- 
setRefreshStrategyStrategy for building url
- 
setAttributesJsonString format of user attributes that are used to assign variations
- 
setGlobalForcedFeatureValuesManual force feature values
- 
setGlobalForcedVariationsMapForce specific experiments to always assign a specific variation (used for QA)
- 
setFeatureRefreshCallback
- 
setCacheManager
- 
setCacheMode
- 
setCacheDirectory
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-