public interface ExperimentContext extends Context
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_NAME
This is the name of the context.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Short |
getExperimentResult(java.lang.Integer experimentId)
This method returns the result of the given experiment for the user who owns this
context.
|
java.lang.String |
getSessionId()
This method returns the current session ID for the user who is accessing
this context.
|
void |
setExperimentResult(java.lang.Integer experimentId,
java.lang.Short newExperimentResult)
This method sets the result of the given experiment for the user who owns this
context.
|
void |
setSessionId(java.lang.String newSessionId)
This method sets the current session ID for the user who is accessing
this context.
|
copyContext, getActivityToken, getContextName, validate
static final java.lang.String COPYRIGHT
static final java.lang.String CONTEXT_NAME
java.lang.Short getExperimentResult(java.lang.Integer experimentId)
experimentId
- The ID of the experiment.java.lang.String getSessionId()
void setExperimentResult(java.lang.Integer experimentId, java.lang.Short newExperimentResult)
experimentId
- The ID of the experiment.newExperimentResult
- The result of the given experiment.void setSessionId(java.lang.String newSessionId)
newSessionId
- The current session ID used specifically in marketing
experimentation.