Class EvaluationContext
java.lang.Object
growthbook.sdk.java.multiusermode.configurations.EvaluationContext
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEvaluationContext(GlobalContext global, UserContext user, EvaluationContext.StackContext stack, Options options) -
Method Summary
Modifier and TypeMethodDescriptionbooleanPlugins registered with the owning GrowthBook instance.Exposure-dedup tracker shared by the owning multi-user client across all of its evaluations (including prerequisite evaluations, which allocate fresh evaluator instances).getStack()Persistence seam for newly assigned sticky bucket documents, set by the owning multi-user client.getUser()inthashCode()booleanWhen true (set by the multi-user client), a throwing tracking callback is logged and its exposure retried instead of propagating out of evaluation — an analytics failure must not fail the assignment (JS/Python parity).voidsetGlobal(GlobalContext global) voidsetOptions(Options options) voidsetPluginRegistry(PluginRegistry pluginRegistry) Plugins registered with the owning GrowthBook instance.voidsetSharedExperimentTracker(ExperimentTracker sharedExperimentTracker) Exposure-dedup tracker shared by the owning multi-user client across all of its evaluations (including prerequisite evaluations, which allocate fresh evaluator instances).voidvoidsetStickyBucketDocWriter(StickyBucketDocWriter stickyBucketDocWriter) Persistence seam for newly assigned sticky bucket documents, set by the owning multi-user client.voidsetSuppressTrackingErrors(boolean suppressTrackingErrors) When true (set by the multi-user client), a throwing tracking callback is logged and its exposure retried instead of propagating out of evaluation — an analytics failure must not fail the assignment (JS/Python parity).voidsetUser(UserContext user) toString()
-
Constructor Details
-
EvaluationContext
public EvaluationContext(GlobalContext global, UserContext user, EvaluationContext.StackContext stack, Options options)
-
-
Method Details
-
getGlobal
-
getUser
-
getStack
-
getOptions
-
getPluginRegistry
Plugins registered with the owning GrowthBook instance. Carried per evaluation context (not on the sharedOptions) so that separate SDK instances built from the sameOptionsstay isolated. Excluded from equals/hashCode/toString: identity-equality object, and its toString is noise in debug logs. -
getStickyBucketDocWriter
Persistence seam for newly assigned sticky bucket documents, set by the owning multi-user client. When null the evaluator calls the configured synchronous service directly (legacy path, unchanged). Excluded from equals/hashCode/toString: lambdas have identity equality. -
isSuppressTrackingErrors
public boolean isSuppressTrackingErrors()When true (set by the multi-user client), a throwing tracking callback is logged and its exposure retried instead of propagating out of evaluation — an analytics failure must not fail the assignment (JS/Python parity). False keeps the single-userGrowthBookbehavior: the exception propagates and the exposure is not retried. -
setGlobal
-
setUser
-
setStack
-
setOptions
-
setPluginRegistry
Plugins registered with the owning GrowthBook instance. Carried per evaluation context (not on the sharedOptions) so that separate SDK instances built from the sameOptionsstay isolated. Excluded from equals/hashCode/toString: identity-equality object, and its toString is noise in debug logs. -
setStickyBucketDocWriter
Persistence seam for newly assigned sticky bucket documents, set by the owning multi-user client. When null the evaluator calls the configured synchronous service directly (legacy path, unchanged). Excluded from equals/hashCode/toString: lambdas have identity equality. -
setSuppressTrackingErrors
public void setSuppressTrackingErrors(boolean suppressTrackingErrors) When true (set by the multi-user client), a throwing tracking callback is logged and its exposure retried instead of propagating out of evaluation — an analytics failure must not fail the assignment (JS/Python parity). False keeps the single-userGrowthBookbehavior: the exception propagates and the exposure is not retried. -
equals
-
hashCode
public int hashCode() -
toString
-