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 Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void deletePercentage​(java.lang.String featureId)  
      int insert​(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 boolean setPercentage​(java.lang.String featureId, double percentage)  
      int update​(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:
        lookupPercentage in interface org.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 id
        percentage - 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 id
        percentage - the percentage
        Returns:
        the int
      • setPercentage

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

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