Interface SqlFeatureLookupManager

All Superinterfaces:
org.codeheadsystems.featureflag.manager.FeatureLookupManager

public interface SqlFeatureLookupManager extends org.codeheadsystems.featureflag.manager.FeatureLookupManager
The type Sql feature lookup manager, as a dao.
  • Method Details

    • lookupPercentage

      Optional<Double> lookupPercentage(String featureId)
      Specified by:
      lookupPercentage in interface org.codeheadsystems.featureflag.manager.FeatureLookupManager
    • insert

      int insert(String featureId, double percentage)
      Internal insert of the feature flag with the percentage.
      Parameters:
      featureId - the feature id
      percentage - the percentage
      Returns:
      the int
    • update

      int update(String featureId, double percentage)
      Internal update to set the percentage for the feature flag.
      Parameters:
      featureId - the feature id
      percentage - the percentage
      Returns:
      the int
    • setPercentage

      default boolean setPercentage(String featureId, double percentage)
      Specified by:
      setPercentage in interface org.codeheadsystems.featureflag.manager.FeatureLookupManager
    • deletePercentage

      void deletePercentage(String featureId)
      Specified by:
      deletePercentage in interface org.codeheadsystems.featureflag.manager.FeatureLookupManager