public interface VariationTargetingLifecycleEvent extends VariationAwareLifecycleEvent, StateAwareLifecycleEvent
Lifecycle event raised when Variant is about to target a user session for a variation, after the session has already been qualified for this variation. This event will not be raised for a session which has been disqualified for the variation.
If no hooks for this event are defined in the experiment schema, Variant server targets the session randomly, according to experience weights provided in the schema. If no experience weights were provided in the schema and no applicable targeting hooks have been defined (or none returned a non-empty result), a run-time user error will be emitted.
If a user hook, subscribed to this event, wishes to target a session to a particular test experience,
post() method must return an object of type
VariationTargetingLifecycleEvent.PostResult. An empty post result
object is obtained by calling the
mkPostResult() factory method.
|Modifier and Type||Interface and Description|
The return type of the
|Modifier and Type||Method and Description|
Override the return type with the narrower one, suitable for this concrete lifecycle event.
Variant Experience Server release 0.10.3. Updated 27 Dec 2019.
Copyright © 2019 Variant Inc.