Interface EvaluationExposureKeySupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Builds the key identifying the result an evaluation is about to return.
The SDK gives one of these to each EvaluationSeriesContext it builds, so that a hook which
needs the identity of an evaluation can ask for it without the SDK building one for hooks that do
not. DedupingHook is the hook that needs it.
The whole evaluation is a parameter, rather than the parts of it a key is built from today, so that
a component added to EvaluationExposureKey later does not change this signature. The flag is
the second parameter because the evaluation has already read it: reading it again here would let an
update landing in between describe a result the evaluation does not return.
-
Method Summary
Modifier and TypeMethodDescriptionexposureKey(EvaluationSeriesContext seriesContext, DataModel.Flag flag)
-
Method Details
-
exposureKey
EvaluationExposureKey exposureKey(EvaluationSeriesContext seriesContext, @Nullable DataModel.Flag flag) - Parameters:
seriesContext- the evaluation whose result is to be identifiedflag- the evaluation's own read of the flag, which its result is derived from, or null if the flag was not found- Returns:
- the key identifying the result the evaluation will return
-