Interface TargetingLifecycleEvent

All Superinterfaces:
LifecycleEvent, StateAwareLifecycleEvent, VariationAwareLifecycleEvent

public interface TargetingLifecycleEvent 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.