Package io.temporal.common
Enum InitialVersioningBehavior
- java.lang.Object
-
- java.lang.Enum<InitialVersioningBehavior>
-
- io.temporal.common.InitialVersioningBehavior
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InitialVersioningBehavior>
@Experimental public enum InitialVersioningBehavior extends java.lang.Enum<InitialVersioningBehavior>
Specifies the versioning behavior for the first task of a new workflow run started via continue-as-new.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_UPGRADEStart the new run withVersioningBehavior.AUTO_UPGRADEbehavior for the first task, upgrading to the latest version.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InitialVersioningBehaviorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InitialVersioningBehavior[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO_UPGRADE
public static final InitialVersioningBehavior AUTO_UPGRADE
Start the new run withVersioningBehavior.AUTO_UPGRADEbehavior for the first task, upgrading to the latest version. After the first workflow task completes, the workflow uses whatever versioning behavior is specified in the workflow code.
-
-
Method Detail
-
values
public static InitialVersioningBehavior[] 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 (InitialVersioningBehavior c : InitialVersioningBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InitialVersioningBehavior 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
-
-