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 TypeMethodDescriptiongetName()default FeatureEvaluationResultgetResult(Map<String, String> parameters, UnleashContext unleashContext, List<Constraint> constraints, List<VariantDefinition> variants) 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) -
isEnabled
-
isEnabled
default boolean isEnabled(Map<String, String> parameters, UnleashContext unleashContext, List<Constraint> constraints)
-