Enum Class TaskReachability
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TaskReachability>,Constable
@Generated(value="protoc",
comments="annotations:TaskReachability.java.pb.meta")
public enum TaskReachability
extends 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. Deprecated.Protobuf enum
temporal.api.enums.v1.TaskReachability-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThere's a possiblity for a worker to receive existing workflow tasks from closed workflows.There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows.There's a possiblity for a worker to receive new workflow tasks.There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows.TASK_REACHABILITY_UNSPECIFIED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThere's a possiblity for a worker to receive existing workflow tasks from closed workflows.static final intThere's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows.static final intThere's a possiblity for a worker to receive new workflow tasks.static final intThere's a possiblity for a worker to receive existing workflow and activity tasks from open workflows.static final intTASK_REACHABILITY_UNSPECIFIED = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskReachabilityforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<TaskReachability> static TaskReachabilityvalueOf(int value) Deprecated.static TaskReachabilityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static TaskReachabilityReturns the enum constant of this class with the specified name.static TaskReachability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TASK_REACHABILITY_UNSPECIFIED
TASK_REACHABILITY_UNSPECIFIED = 0; -
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
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
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
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
-
-
Field Details
-
TASK_REACHABILITY_UNSPECIFIED_VALUE
public static final int TASK_REACHABILITY_UNSPECIFIED_VALUETASK_REACHABILITY_UNSPECIFIED = 0;- See Also:
-
TASK_REACHABILITY_NEW_WORKFLOWS_VALUE
public static final int TASK_REACHABILITY_NEW_WORKFLOWS_VALUEThere's a possiblity for a worker to receive new workflow tasks. Workers should *not* be retired.
TASK_REACHABILITY_NEW_WORKFLOWS = 1;- See Also:
-
TASK_REACHABILITY_EXISTING_WORKFLOWS_VALUE
public static final int TASK_REACHABILITY_EXISTING_WORKFLOWS_VALUEThere'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:
-
TASK_REACHABILITY_OPEN_WORKFLOWS_VALUE
public static final int TASK_REACHABILITY_OPEN_WORKFLOWS_VALUEThere'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:
-
TASK_REACHABILITY_CLOSED_WORKFLOWS_VALUE
public static final int TASK_REACHABILITY_CLOSED_WORKFLOWS_VALUEThere'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:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-