Package io.temporal.api.enums.v1
Enum TaskReachability
- java.lang.Object
-
- java.lang.Enum<TaskReachability>
-
- io.temporal.api.enums.v1.TaskReachability
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,java.io.Serializable
,java.lang.Comparable<TaskReachability>
@Generated(value="protoc", comments="annotations:TaskReachability.java.pb.meta") public enum TaskReachability extends java.lang.Enum<TaskReachability> implements com.google.protobuf.ProtocolMessageEnum
Specifies which category of tasks may reach a worker on a versioned task queue. Used both in a reachability query and its response.
Protobuf enumtemporal.api.enums.v1.TaskReachability
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TASK_REACHABILITY_CLOSED_WORKFLOWS
There's a possiblity for a worker to receive existing workflow tasks from closed workflows.TASK_REACHABILITY_EXISTING_WORKFLOWS
There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows.TASK_REACHABILITY_NEW_WORKFLOWS
There's a possiblity for a worker to receive new workflow tasks.TASK_REACHABILITY_OPEN_WORKFLOWS
There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows.TASK_REACHABILITY_UNSPECIFIED
TASK_REACHABILITY_UNSPECIFIED = 0;
UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
TASK_REACHABILITY_CLOSED_WORKFLOWS_VALUE
There's a possiblity for a worker to receive existing workflow tasks from closed workflows.static int
TASK_REACHABILITY_EXISTING_WORKFLOWS_VALUE
There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows.static int
TASK_REACHABILITY_NEW_WORKFLOWS_VALUE
There's a possiblity for a worker to receive new workflow tasks.static int
TASK_REACHABILITY_OPEN_WORKFLOWS_VALUE
There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows.static int
TASK_REACHABILITY_UNSPECIFIED_VALUE
TASK_REACHABILITY_UNSPECIFIED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TaskReachability
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<TaskReachability>
internalGetValueMap()
static TaskReachability
valueOf(int value)
Deprecated.static TaskReachability
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static TaskReachability
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TaskReachability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TASK_REACHABILITY_UNSPECIFIED
public static final TaskReachability TASK_REACHABILITY_UNSPECIFIED
TASK_REACHABILITY_UNSPECIFIED = 0;
-
TASK_REACHABILITY_NEW_WORKFLOWS
public static final TaskReachability TASK_REACHABILITY_NEW_WORKFLOWS
There's a possiblity for a worker to receive new workflow tasks. Workers should *not* be retired.
TASK_REACHABILITY_NEW_WORKFLOWS = 1;
-
TASK_REACHABILITY_EXISTING_WORKFLOWS
public static final TaskReachability TASK_REACHABILITY_EXISTING_WORKFLOWS
There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows. Workers should *not* be retired. This enum value does not distinguish between open and closed workflows.
TASK_REACHABILITY_EXISTING_WORKFLOWS = 2;
-
TASK_REACHABILITY_OPEN_WORKFLOWS
public static final TaskReachability TASK_REACHABILITY_OPEN_WORKFLOWS
There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows. Workers should *not* be retired.
TASK_REACHABILITY_OPEN_WORKFLOWS = 3;
-
TASK_REACHABILITY_CLOSED_WORKFLOWS
public static final TaskReachability TASK_REACHABILITY_CLOSED_WORKFLOWS
There's a possiblity for a worker to receive existing workflow tasks from closed workflows. Workers may be retired dependending on application requirements. For example, if there's no need to query closed workflows.
TASK_REACHABILITY_CLOSED_WORKFLOWS = 4;
-
UNRECOGNIZED
public static final TaskReachability UNRECOGNIZED
-
-
Field Detail
-
TASK_REACHABILITY_UNSPECIFIED_VALUE
public static final int TASK_REACHABILITY_UNSPECIFIED_VALUE
TASK_REACHABILITY_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
TASK_REACHABILITY_NEW_WORKFLOWS_VALUE
public static final int TASK_REACHABILITY_NEW_WORKFLOWS_VALUE
There's a possiblity for a worker to receive new workflow tasks. Workers should *not* be retired.
TASK_REACHABILITY_NEW_WORKFLOWS = 1;
- See Also:
- Constant Field Values
-
TASK_REACHABILITY_EXISTING_WORKFLOWS_VALUE
public static final int TASK_REACHABILITY_EXISTING_WORKFLOWS_VALUE
There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows. Workers should *not* be retired. This enum value does not distinguish between open and closed workflows.
TASK_REACHABILITY_EXISTING_WORKFLOWS = 2;
- See Also:
- Constant Field Values
-
TASK_REACHABILITY_OPEN_WORKFLOWS_VALUE
public static final int TASK_REACHABILITY_OPEN_WORKFLOWS_VALUE
There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows. Workers should *not* be retired.
TASK_REACHABILITY_OPEN_WORKFLOWS = 3;
- See Also:
- Constant Field Values
-
TASK_REACHABILITY_CLOSED_WORKFLOWS_VALUE
public static final int TASK_REACHABILITY_CLOSED_WORKFLOWS_VALUE
There's a possiblity for a worker to receive existing workflow tasks from closed workflows. Workers may be retired dependending on application requirements. For example, if there's no need to query closed workflows.
TASK_REACHABILITY_CLOSED_WORKFLOWS = 4;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TaskReachability[] 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 (TaskReachability c : TaskReachability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskReachability 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
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static TaskReachability valueOf(int value)
Deprecated.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:
value
- 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
-
forNumber
public static TaskReachability forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<TaskReachability> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static TaskReachability valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc
- 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
-
-