Enum 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 enum temporal.api.enums.v1.TaskReachability
    • 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;
    • 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 name
        java.lang.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 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 name
        java.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 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 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 name
        java.lang.NullPointerException - if the argument is null