Interface SiteDarkFeaturesStorage


@PublicSpi public interface SiteDarkFeaturesStorage
Persist site wide dark feature keys. The storage part used by the default DarkFeatureManager implementation.
Since:
2.10
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(String featureKey)
    Tells whether the given dark feature key is defined (exists, is known) site wide.
    void
    disable(String featureKey)
    Disable the given dark feature key site wide.
    void
    enable(String featureKey)
    Enable the given dark feature key site wide.
    The implementation of this should use an unmodifiable implementation of set as the return type.
  • Method Details

    • contains

      boolean contains(String featureKey)
      Tells whether the given dark feature key is defined (exists, is known) site wide.
      Parameters:
      featureKey - the feature key to be checked; not blank, leading and trailing whitespaces are removed
      Returns:
      true if the site contains the given feature key, false otherwise
    • enable

      void enable(String featureKey)
      Enable the given dark feature key site wide.
      Parameters:
      featureKey - the feature key to be enabled; not blank, leading and trailing whitespaces are removed
    • disable

      void disable(String featureKey)
      Disable the given dark feature key site wide.
      Parameters:
      featureKey - the feature key to be disabled; not blank, leading and trailing whitespaces are removed
    • getEnabledDarkFeatureSet

      Set<String> getEnabledDarkFeatureSet()
      The implementation of this should use an unmodifiable implementation of set as the return type.
      Returns:
      all enabled site wide dark feature keys.
      Since:
      4.6.0.