Package com.yahoo.config.application.api
Enum DeploymentSpec.RevisionChange
- java.lang.Object
-
- java.lang.Enum<DeploymentSpec.RevisionChange>
-
- com.yahoo.config.application.api.DeploymentSpec.RevisionChange
-
- All Implemented Interfaces:
Serializable
,Comparable<DeploymentSpec.RevisionChange>
- Enclosing class:
- DeploymentSpec
public static enum DeploymentSpec.RevisionChange extends Enum<DeploymentSpec.RevisionChange>
Determines when application changes deploy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description always
Latest: Application changes immediately supersede previous application changes, unless currently blocked.whenClear
Exclusive: Application changes always wait for already rolling application changes to complete.whenFailing
Separate: Application changes wait for already rolling application changes to complete, unless they fail.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeploymentSpec.RevisionChange
valueOf(String name)
Returns the enum constant of this type with the specified name.static DeploymentSpec.RevisionChange[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
whenClear
public static final DeploymentSpec.RevisionChange whenClear
Exclusive: Application changes always wait for already rolling application changes to complete.
-
whenFailing
public static final DeploymentSpec.RevisionChange whenFailing
Separate: Application changes wait for already rolling application changes to complete, unless they fail.
-
always
public static final DeploymentSpec.RevisionChange always
Latest: Application changes immediately supersede previous application changes, unless currently blocked.
-
-
Method Detail
-
values
public static DeploymentSpec.RevisionChange[] 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 (DeploymentSpec.RevisionChange c : DeploymentSpec.RevisionChange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeploymentSpec.RevisionChange valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-