Package com.launchdarkly.sdk.server
Class MigrationVariation
- java.lang.Object
-
- com.launchdarkly.sdk.server.MigrationVariation
-
public final class MigrationVariation extends java.lang.Object
Result of anLDClient.migrationVariation(String, LDContext, MigrationStage)
call.This includes the stage of the migration as well as a tracker.
-
-
Constructor Summary
Constructors Constructor Description MigrationVariation(MigrationStage stage, MigrationOpTracker tracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MigrationStage
getStage()
The result of the flag evaluation.MigrationOpTracker
getTracker()
A tracker which can be used to generate analytics for the migration.
-
-
-
Constructor Detail
-
MigrationVariation
public MigrationVariation(@NotNull MigrationStage stage, @NotNull MigrationOpTracker tracker)
-
-
Method Detail
-
getStage
public MigrationStage getStage()
The result of the flag evaluation. This will be either one of the flag's variations or the default value that was passed toLDClient.migrationVariation(String, LDContext, MigrationStage)
.- Returns:
- The migration stage.
-
getTracker
public MigrationOpTracker getTracker()
A tracker which can be used to generate analytics for the migration.- Returns:
- The tracker.
-
-