Package io.getunleash.strategy
Interface Strategy
- All Known Implementing Classes:
ApplicationHostnameStrategy,DefaultStrategy,FlexibleRolloutStrategy,GradualRolloutRandomStrategy,GradualRolloutSessionIdStrategy,GradualRolloutUserIdStrategy,RemoteAddressStrategy,UnknownStrategy,UserWithIdStrategy
public interface Strategy
-
Method Summary
Modifier and TypeMethodDescriptiondefault FeatureEvaluationResultgetDeprecatedHashingAlgoResult(Map<String, String> parameters, UnleashContext unleashContext, List<Constraint> constraints, List<VariantDefinition> variants) Deprecated.getName()default FeatureEvaluationResultgetResult(Map<String, String> parameters, UnleashContext unleashContext, List<Constraint> constraints, List<VariantDefinition> variants) default StringgetStickiness(Map<String, String> parameters) booleandefault booleanisEnabled(Map<String, String> parameters, UnleashContext unleashContext) default booleanisEnabled(Map<String, String> parameters, UnleashContext unleashContext, List<Constraint> constraints)
-
Method Details
-
getName
String getName() -
isEnabled
-
getResult
default FeatureEvaluationResult getResult(Map<String, String> parameters, UnleashContext unleashContext, List<Constraint> constraints, @Nullable List<VariantDefinition> variants) -
getDeprecatedHashingAlgoResult
default FeatureEvaluationResult getDeprecatedHashingAlgoResult(Map<String, String> parameters, UnleashContext unleashContext, List<Constraint> constraints, @Nullable List<VariantDefinition> variants) Deprecated.Uses the old pre 9.0.0 way of hashing for finding the Variant to return- Parameters:
parameters-unleashContext-constraints-variants-- Returns:
-
isEnabled
-
isEnabled
default boolean isEnabled(Map<String, String> parameters, UnleashContext unleashContext, List<Constraint> constraints) -
getStickiness
-