Package io.rtr.alchemy.models
Class Experiments
java.lang.Object
io.rtr.alchemy.models.Experiments
- All Implemented Interfaces:
Closeable,AutoCloseable
The main class for accessing experiments
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Creates a new experiment by name, which is not persisted until save is calledvoidDeletes a specific experiment by namefind()Finds all experimentsFinds an experiment given a set of criteriaGets a specific experiment by nameReturns all active experimentsgetActiveTreatment(String experimentName, Identity identity) Returns the current active treatment for an experiment name and identity, taking overrides into accountgetActiveTreatments(Identity identity) Returns all active treatments for all active experiments for an identity, taking overrides into accountvoidsave(Experiment experiment) Persists a specific experiment by namestatic Experiments.Builderusing(ExperimentsStoreProvider provider)
-
Method Details
-
using
-
getActiveTreatment
Returns the current active treatment for an experiment name and identity, taking overrides into account -
getActiveExperiments
Returns all active experiments -
getActiveTreatments
Returns all active treatments for all active experiments for an identity, taking overrides into account -
find
Finds an experiment given a set of criteria -
find
Finds all experiments -
get
Gets a specific experiment by name -
delete
Deletes a specific experiment by name -
save
Persists a specific experiment by name- Throws:
javax.validation.ValidationException
-
create
Creates a new experiment by name, which is not persisted until save is called- Throws:
javax.validation.ValidationException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-