Class GrowthBookClient
java.lang.Object
growthbook.sdk.java.multiusermode.GrowthBookClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<ValueType>
FeatureResult<ValueType>evalFeature
(String key, Class<ValueType> valueTypeClass, UserContext userContext) <ValueType>
ValueTypegetFeatureValue
(String featureKey, ValueType defaultValue, Class<ValueType> gsonDeserializableClass, UserContext userContext) boolean
isOff
(String featureKey, UserContext userContext) isOn
(String featureKey, UserContext userContext) void
void
refreshForRemoteEval
(RequestBodyForRemoteEval requestBodyForRemoteEval) <ValueType>
ExperimentResult<ValueType>run
(Experiment<ValueType> experiment, UserContext userContext) void
setGlobalAttributes
(String attributes) void
setGlobalForceFeatures
(Map<String, Object> forceFeatures) void
setGlobalForceVariations
(Map<String, Integer> forceVariations) void
subscribe
(ExperimentRunCallback callback)
-
Constructor Details
-
GrowthBookClient
public GrowthBookClient() -
GrowthBookClient
-
-
Method Details
-
initialize
public boolean initialize() -
setGlobalAttributes
-
setGlobalForceFeatures
-
setGlobalForceVariations
-
refreshFeature
public void refreshFeature() -
refreshForRemoteEval
-
evalFeature
public <ValueType> FeatureResult<ValueType> evalFeature(String key, Class<ValueType> valueTypeClass, UserContext userContext) -
isOn
-
isOff
-
getFeatureValue
public <ValueType> ValueType getFeatureValue(String featureKey, ValueType defaultValue, Class<ValueType> gsonDeserializableClass, UserContext userContext) -
run
public <ValueType> ExperimentResult<ValueType> run(Experiment<ValueType> experiment, UserContext userContext) -
subscribe
-