Package io.getunleash.strategy
Class GradualRolloutUserIdStrategy
- java.lang.Object
-
- io.getunleash.strategy.GradualRolloutUserIdStrategy
-
- All Implemented Interfaces:
Strategy
public final class GradualRolloutUserIdStrategy extends Object implements Strategy
Implements a gradual roll-out strategy based on userId.Using this strategy you can target only logged in users and gradually expose your feature to higher percentage of the logged in user.
This strategy takes two parameters: - percentage : a number between 0 and 100. The percentage you want to enable the feature for. - groupId : a groupId used for rolling out the feature. By using the same groupId for different toggles you can correlate the user experience across toggles.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringGROUP_IDprotected static StringPERCENTAGE
-
Constructor Summary
Constructors Constructor Description GradualRolloutUserIdStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()booleanisEnabled(Map<String,String> parameters)booleanisEnabled(Map<String,String> parameters, UnleashContext unleashContext)
-
-
-
Field Detail
-
PERCENTAGE
protected static final String PERCENTAGE
- See Also:
- Constant Field Values
-
GROUP_ID
protected static final String GROUP_ID
- See Also:
- Constant Field Values
-
-