Package com.configcat
Enum OverrideBehaviour
- java.lang.Object
-
- java.lang.Enum<OverrideBehaviour>
-
- com.configcat.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_ONLYWhen 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_REMOTEWhen 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_LOCALWhen 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 OverrideBehaviourvalueOf(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.
-
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
-