Package com.configcat

Enum OverrideBehaviour

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OverrideBehaviour>

    public enum OverrideBehaviour
    extends java.lang.Enum<OverrideBehaviour>
    Describes how the overrides should behave.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      LOCAL_ONLY
      When evaluating values, the SDK will not use feature flags and settings from the ConfigCat CDN, but it will use all feature flags and settings that are loaded from local-override sources.
      LOCAL_OVER_REMOTE
      When evaluating values, the SDK will use all feature flags and settings that are downloaded from the ConfigCat CDN, plus all feature flags and settings that are loaded from local-override sources.
      REMOTE_OVER_LOCAL
      When evaluating values, the SDK will use all feature flags and settings that are downloaded from the ConfigCat CDN, plus all feature flags and settings that are loaded from local-override sources.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static OverrideBehaviour valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static OverrideBehaviour[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LOCAL_ONLY

        public static final OverrideBehaviour LOCAL_ONLY
        When evaluating values, the SDK will not use feature flags and settings from the ConfigCat CDN, but it will use all feature flags and settings that are loaded from local-override sources.
      • LOCAL_OVER_REMOTE

        public static final OverrideBehaviour LOCAL_OVER_REMOTE
        When evaluating values, the SDK will use all feature flags and settings that are downloaded from the ConfigCat CDN, plus all feature flags and settings that are loaded from local-override sources. If a feature flag or a setting is defined both in the fetched and the local-override source then the local-override version will take precedence.
      • REMOTE_OVER_LOCAL

        public static final OverrideBehaviour REMOTE_OVER_LOCAL
        When evaluating values, the SDK will use all feature flags and settings that are downloaded from the ConfigCat CDN, plus all feature flags and settings that are loaded from local-override sources. If a feature flag or a setting is defined both in the fetched and the local-override source then the fetched version will take precedence.
    • Method Detail

      • values

        public static OverrideBehaviour[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OverrideBehaviour c : OverrideBehaviour.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OverrideBehaviour valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null