public interface TargetingTracker
The implementation will have request scoped life-cycle, i.e. Variant will re-instantiate the
implementing class at the start of each state request. By contract, an implementation must
provide the constructor with the following signature
Variant will use this constructor to instantiate a concrete implementation within the scope
methods by passing it these arguments without interpretation.
targeting.tracker.class.name configuration property.
|Modifier and Type||Interface and Description|
A targeting tracker entry.
|Modifier and Type||Method and Description|
An empty targeting tracker.
All currently tracked experiences.
Saves the state of this object to the external persistence mechanism, making it durable between Variant sessions.
Sets the test experiences tracked by this object.
TargetingTracker.Entryeach corresponding to a test experience currently tracked by this object. Must never return null.
void set(java.util.Set<TargetingTracker.Entry> entries)
save(Object...)to persist between state request.
entries- Set of objects of type
TargetingTracker.Entry. The caller must guarantee consistency of this operation, i.e. that the returned set does not contain two entries both referring to the same test.
void save(java.lang.Object... userData)
userData- An array of zero or more opaque objects which
StateRequest.commit(Object...)will pass here without interpretation.
static TargetingTracker empty()
Variant Experience Server release 0.10.3. Updated 27 Dec 2019.
Copyright © 2019 Variant Inc.