Package io.temporal.common
Enum VersioningIntent
- java.lang.Object
-
- java.lang.Enum<VersioningIntent>
-
- io.temporal.common.VersioningIntent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VersioningIntent>
public enum VersioningIntent extends java.lang.Enum<VersioningIntent>
Indicates whether the user intends certain commands to be run on a compatible worker Build Id version or not.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VERSIONING_INTENT_COMPATIBLE
Indicates that the command should run on a worker with compatible version if possible.VERSIONING_INTENT_DEFAULT
Indicates that the command should run on the target task queue's current overall-default Build Id.VERSIONING_INTENT_UNSPECIFIED
Indicates that the SDK should choose the most sensible default behavior for the type of command, accounting for whether the command will be run on the same task queue as the current worker.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
determineUseCompatibleFlag(boolean destinationTaskQueueIsSame)
static VersioningIntent
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VersioningIntent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSIONING_INTENT_UNSPECIFIED
public static final VersioningIntent VERSIONING_INTENT_UNSPECIFIED
Indicates that the SDK should choose the most sensible default behavior for the type of command, accounting for whether the command will be run on the same task queue as the current worker.
-
VERSIONING_INTENT_COMPATIBLE
public static final VersioningIntent VERSIONING_INTENT_COMPATIBLE
Indicates that the command should run on a worker with compatible version if possible. It may not be possible if the target task queue does not also have knowledge of the current worker's Build Id.
-
VERSIONING_INTENT_DEFAULT
public static final VersioningIntent VERSIONING_INTENT_DEFAULT
Indicates that the command should run on the target task queue's current overall-default Build Id.
-
-
Method Detail
-
values
public static VersioningIntent[] 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 (VersioningIntent c : VersioningIntent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VersioningIntent 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
-
determineUseCompatibleFlag
public boolean determineUseCompatibleFlag(boolean destinationTaskQueueIsSame)
-
-