Class EvaluationContext

java.lang.Object
growthbook.sdk.java.multiusermode.configurations.EvaluationContext

public class EvaluationContext extends Object
  • Constructor Details

  • Method Details

    • getGlobal

      public GlobalContext getGlobal()
    • getUser

      public UserContext getUser()
    • getStack

      public EvaluationContext.StackContext getStack()
    • getOptions

      public Options getOptions()
    • getPluginRegistry

      @Nullable public PluginRegistry getPluginRegistry()
      Plugins registered with the owning GrowthBook instance. Carried per evaluation context (not on the shared Options) so that separate SDK instances built from the same Options stay isolated. Excluded from equals/hashCode/toString: identity-equality object, and its toString is noise in debug logs.
    • getStickyBucketDocWriter

      @Nullable public StickyBucketDocWriter 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.
    • getSharedExperimentTracker

      @Nullable public ExperimentTracker getSharedExperimentTracker()
      Exposure-dedup tracker shared by the owning multi-user client across all of its evaluations (including prerequisite evaluations, which allocate fresh evaluator instances). Null → the evaluator's own local tracker (legacy single-user path).
    • 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-user GrowthBook behavior: the exception propagates and the exposure is not retried.
    • setGlobal

      public void setGlobal(GlobalContext global)
    • setUser

      public void setUser(UserContext user)
    • setStack

      public void setStack(EvaluationContext.StackContext stack)
    • setOptions

      public void setOptions(Options options)
    • setPluginRegistry

      public void setPluginRegistry(@Nullable PluginRegistry pluginRegistry)
      Plugins registered with the owning GrowthBook instance. Carried per evaluation context (not on the shared Options) so that separate SDK instances built from the same Options stay isolated. Excluded from equals/hashCode/toString: identity-equality object, and its toString is noise in debug logs.
    • setStickyBucketDocWriter

      public void setStickyBucketDocWriter(@Nullable StickyBucketDocWriter stickyBucketDocWriter)
      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.
    • setSharedExperimentTracker

      public void setSharedExperimentTracker(@Nullable 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). Null → the evaluator's own local tracker (legacy single-user path).
    • 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-user GrowthBook behavior: the exception propagates and the exposure is not retried.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object