Interface DynamicToggleProvider


  • @ConsumerType
    public interface DynamicToggleProvider
    The dynamic toggle provider is used for engineering to allow for rapid testing of toggles. An implementation of the Toggle Router should support a service of this type and use the provided toggle information in addition to the toggle information from the toggle service.
    • Method Detail

      • getEnabledToggleNames

        java.util.Collection<java.lang.String> getEnabledToggleNames()
        Return the names of all currently enabled toggles
        Returns:
        A unmodifiable collection of names.
      • getDisabledToggleNames

        java.util.Collection<java.lang.String> getDisabledToggleNames()
        Return the names of all currently disabled toggles
        Returns:
        A unmodifiable collection of names.
      • getToggleValues

        default java.util.Map<java.lang.String,​java.lang.String> getToggleValues()
        Return toggle values for the given toggles (if a value is set)
        Returns:
        A unmodifiable map of toggle names to values.
        Since:
        1.1