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) -
Method Summary
Modifier and TypeMethodDescriptionstatic Options.OptionsBuilder
builder()
boolean
Boolean 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 takesString
andFeatureResult
as arguments.com.google.gson.JsonObject
Map 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 takesExperiment
andExperimentResult
as arguments.getUrl()
int
hashCode()
void
setAllowUrlOverrides
(Boolean allowUrlOverrides) Boolean flag to allow URL overrides (default: false)void
setApiHost
(String apiHost) void
setAttributesJson
(String attributesJson) String format of user attributes that are used to assign variationsvoid
setClientKey
(String clientKey) void
setDecryptionKey
(String decryptionKey) Optional decryption Key.void
setEnabled
(Boolean enabled) Whether globally all experiments are enabled (default: true) Switch to globally disable all experiments.void
setFeatureRefreshCallback
(FeatureRefreshCallback featureRefreshCallback) void
setFeatureUsageCallbackWithUser
(FeatureUsageCallbackWithUser featureUsageCallbackWithUser) A function that takesString
andFeatureResult
as arguments.void
setGlobalAttributes
(String attributesJson) void
setGlobalForcedFeatureValues
(Map<String, Object> globalForcedFeatureValues) Manual force feature valuesvoid
setGlobalForcedVariationsMap
(Map<String, Integer> globalForcedVariationsMap) Force specific experiments to always assign a specific variation (used for QA)void
void
setIsCacheDisabled
(Boolean isCacheDisabled) void
setIsQaMode
(Boolean isQaMode) If true, random assignment is disabled and only explicitly forced variations are used.void
setRefreshStrategy
(FeatureRefreshStrategy refreshStrategy) Strategy for building urlvoid
setStickyBucketIdentifierAttributes
(List<String> stickyBucketIdentifierAttributes) List of user's attributes keys.void
setStickyBucketService
(StickyBucketService stickyBucketService) Service that provide functionality of Sticky Bucketingvoid
setTrackingCallBackWithUser
(TrackingCallbackWithUser trackingCallBackWithUser) A function that takesExperiment
andExperimentResult
as arguments.void
toString()
-
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)
-
-
Method Details
-
getRefreshingStrategy
-
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 takesExperiment
andExperimentResult
as arguments. -
getFeatureUsageCallbackWithUser
A function that takesString
andFeatureResult
as 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
-
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 takesExperiment
andExperimentResult
as arguments. -
setFeatureUsageCallbackWithUser
public void setFeatureUsageCallbackWithUser(@Nullable FeatureUsageCallbackWithUser featureUsageCallbackWithUser) A function that takesString
andFeatureResult
as 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
-
equals
-
hashCode
public int hashCode() -
toString
-