Interface SqlFeatureLookupManager
-
- All Superinterfaces:
org.codeheadsystems.featureflag.manager.FeatureLookupManager
public interface SqlFeatureLookupManager extends org.codeheadsystems.featureflag.manager.FeatureLookupManagerThe type Sql feature lookup manager, as a dao.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSqlFeatureLookupManager.BuilderThe type Builder.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddeletePercentage(java.lang.String featureId)intinsert(java.lang.String featureId, double percentage)Internal insert of the feature flag with the percentage.java.util.Optional<java.lang.Double>lookupPercentage(java.lang.String featureId)default booleansetPercentage(java.lang.String featureId, double percentage)intupdate(java.lang.String featureId, double percentage)Internal update to set the percentage for the feature flag.
-
-
-
Method Detail
-
lookupPercentage
java.util.Optional<java.lang.Double> lookupPercentage(java.lang.String featureId)
- Specified by:
lookupPercentagein interfaceorg.codeheadsystems.featureflag.manager.FeatureLookupManager
-
insert
int insert(java.lang.String featureId, double percentage)Internal insert of the feature flag with the percentage.- Parameters:
featureId- the feature idpercentage- the percentage- Returns:
- the int
-
update
int update(java.lang.String featureId, double percentage)Internal update to set the percentage for the feature flag.- Parameters:
featureId- the feature idpercentage- the percentage- Returns:
- the int
-
setPercentage
default boolean setPercentage(java.lang.String featureId, double percentage)- Specified by:
setPercentagein interfaceorg.codeheadsystems.featureflag.manager.FeatureLookupManager
-
deletePercentage
void deletePercentage(java.lang.String featureId)
- Specified by:
deletePercentagein interfaceorg.codeheadsystems.featureflag.manager.FeatureLookupManager
-
-