Class Options
java.lang.Object
growthbook.sdk.java.multiusermode.configurations.Options
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOptions(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 Summary
Modifier 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
-
Options
public 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
-
setInMemoryStickyBucketService
public void setInMemoryStickyBucketService() -
setGlobalAttributes
-
builder
-
getEnabled
Whether globally all experiments are enabled (default: true) Switch to globally disable all experiments. -
getIsQaMode
If true, random assignment is disabled and only explicitly forced variations are used. -
getIsCacheDisabled
-
getAllowUrlOverrides
Boolean flag to allow URL overrides (default: false) -
getUrl
-
getApiHost
-
getClientKey
-
getDecryptionKey
Optional decryption Key. If this is not null, featuresJson should be an encrypted payload. -
getStickyBucketIdentifierAttributes
List of user's attributes keys. -
getTrackingCallBackWithUser
A function that takesExperimentandExperimentResultas arguments. -
getFeatureUsageCallbackWithUser
A function that takesStringandFeatureResultas arguments. A callback that will be invoked every time a feature is viewed. Listen for feature usage events -
getRefreshStrategy
Strategy for building url -
getGlobalAttributes
@Nullable public com.google.gson.JsonObject getGlobalAttributes()Map of user attributes that are used to assign variations -
getAttributesJson
String format of user attributes that are used to assign variations -
getGlobalForcedFeatureValues
Manual force feature values -
getGlobalForcedVariationsMap
Force specific experiments to always assign a specific variation (used for QA) -
getFeatureRefreshCallback
-
getCacheManager
-
setEnabled
Whether globally all experiments are enabled (default: true) Switch to globally disable all experiments. -
setIsQaMode
If true, random assignment is disabled and only explicitly forced variations are used. -
setIsCacheDisabled
-
setAllowUrlOverrides
Boolean flag to allow URL overrides (default: false) -
setUrl
-
setApiHost
-
setClientKey
-
setDecryptionKey
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
Service that provide functionality of Sticky Bucketing -
setTrackingCallBackWithUser
public void setTrackingCallBackWithUser(@Nullable TrackingCallbackWithUser trackingCallBackWithUser) A function that takesExperimentandExperimentResultas arguments. -
setFeatureUsageCallbackWithUser
public 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 -
setRefreshStrategy
Strategy for building url -
setAttributesJson
String format of user attributes that are used to assign variations -
setGlobalForcedFeatureValues
Manual force feature values -
setGlobalForcedVariationsMap
Force specific experiments to always assign a specific variation (used for QA) -
setFeatureRefreshCallback
-
setCacheManager
-
setCacheMode
-
setCacheDirectory
-
equals
-
hashCode
public int hashCode() -
toString
-