Enum Class 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, 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
  • Enum Constant Details

    • 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 Details

    • TASK_REACHABILITY_UNSPECIFIED_VALUE

      public static final int TASK_REACHABILITY_UNSPECIFIED_VALUE
      TASK_REACHABILITY_UNSPECIFIED = 0;
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
  • Method Details

    • values

      public static TaskReachability[] 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

      public static TaskReachability valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static TaskReachability valueOf(int value)
      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 name
      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 interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 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 name
      NullPointerException - if the argument is null