Package com.variant.spi
package com.variant.spi
Top level classes in the Variant server-side service program interface (SPI).
User code consuming this SPI by implementing lifecycle hooks or trace event flushers.
These implementations are placed in the server's
spi
directory, where
they can be found by the class loader.
Lifecycle hooks are listeners for server-raised lifecycle events which provide a convenient way of extending Variant server's default behavior with application specific semantics. Event flushers are responsible for final egestion of Variant trace events. The standard extension library, contains several popular event flushers, such as one for the PostgreSQL database.
- Since:
- 0.7
-
ClassDescriptionSuper-type of all lifecycle event types, whose runtime context includes a particular experiment.An enriched Variant trace event that is passed to a trace event flusher.Ultimate super-type of all lifecycle event types.LifecycleHook<R,
E extends LifecycleEvent> The interface to be implemented by a user lifecycle hook.Lifecycle event, raised when a user session's qualification for a particular experiment must be established.User session.Super-type of all lifecycle event types, whose runtime context includes a particular state.State request, as returned bySession.getStateRequest()
.Lifecycle event raised when Variant is about to target a user session for a experiment, after the session has already been qualified for this experiment.Trace event can be sent by the client or triggered by an SPI object.Interface to be implemented by a user-supplied class, handling the writing of trace events to external storage.