Class EvaluationSeriesContext
- java.lang.Object
-
- com.launchdarkly.sdk.server.integrations.EvaluationSeriesContext
-
public class EvaluationSeriesContext extends java.lang.ObjectRepresents parameters associated with a feature flag evaluation. An instance of this class is provided to some stages of series of aHookimplementation. For example, seeHook.beforeEvaluation(EvaluationSeriesContext, Map)
-
-
Field Summary
Fields Modifier and Type Field Description LDContextcontextThe context the evaluation was for.LDValuedefaultValueThe user-provided default value for the evaluation.java.lang.StringflagKeyThe key of the feature flag being evaluated.java.lang.StringmethodThe variation method that was used to invoke the evaluation.
-
Constructor Summary
Constructors Constructor Description EvaluationSeriesContext(java.lang.String method, java.lang.String key, LDContext context, LDValue defaultValue)
-
-
-
Field Detail
-
method
public final java.lang.String method
The variation method that was used to invoke the evaluation. The stability of this string is not guaranteed and should not be used in conditional logic.
-
flagKey
public final java.lang.String flagKey
The key of the feature flag being evaluated.
-
context
public final LDContext context
The context the evaluation was for.
-
defaultValue
public final LDValue defaultValue
The user-provided default value for the evaluation.
-
-
Constructor Detail
-
EvaluationSeriesContext
public EvaluationSeriesContext(java.lang.String method, java.lang.String key, LDContext context, LDValue defaultValue)- Parameters:
method- the variation method that was used to invoke the evaluation.key- the key of the feature flag being evaluated.context- the context the evaluation was for.defaultValue- the user-provided default value for the evaluation.
-
-