Package io.temporal.api.enums.v1
Enum ActivityIdReusePolicy
- java.lang.Object
-
- java.lang.Enum<ActivityIdReusePolicy>
-
- io.temporal.api.enums.v1.ActivityIdReusePolicy
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<ActivityIdReusePolicy>
@Generated(value="protoc", comments="annotations:ActivityIdReusePolicy.java.pb.meta") public enum ActivityIdReusePolicy extends java.lang.Enum<ActivityIdReusePolicy> implements com.google.protobuf.ProtocolMessageEnumDefines whether to allow re-using an activity ID from a previously *closed* activity. If the request is denied, the server returns an `ActivityExecutionAlreadyStarted` error. See `ActivityIdConflictPolicy` for handling ID duplication with a *running* activity.
Protobuf enumtemporal.api.enums.v1.ActivityIdReusePolicy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATEAlways allow starting an activity using the same activity ID.ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLYAllow starting an activity using the same ID only when the last activity's final state is one of {failed, canceled, terminated, timed out}.ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATEDo not permit re-use of the ID for this activity.ACTIVITY_ID_REUSE_POLICY_UNSPECIFIEDACTIVITY_ID_REUSE_POLICY_UNSPECIFIED = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY_VALUEAllow starting an activity using the same ID only when the last activity's final state is one of {failed, canceled, terminated, timed out}.static intACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_VALUEAlways allow starting an activity using the same activity ID.static intACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE_VALUEDo not permit re-use of the ID for this activity.static intACTIVITY_ID_REUSE_POLICY_UNSPECIFIED_VALUEACTIVITY_ID_REUSE_POLICY_UNSPECIFIED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ActivityIdReusePolicyforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ActivityIdReusePolicy>internalGetValueMap()static ActivityIdReusePolicyvalueOf(int value)Deprecated.static ActivityIdReusePolicyvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ActivityIdReusePolicyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ActivityIdReusePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED
public static final ActivityIdReusePolicy ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED
ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED = 0;
-
ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE
public static final ActivityIdReusePolicy ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE
Always allow starting an activity using the same activity ID.
ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1;
-
ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY
public static final ActivityIdReusePolicy ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY
Allow starting an activity using the same ID only when the last activity's final state is one of {failed, canceled, terminated, timed out}.ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2;
-
ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE
public static final ActivityIdReusePolicy ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE
Do not permit re-use of the ID for this activity. Future start requests could potentially change the policy, allowing re-use of the ID.
ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE = 3;
-
UNRECOGNIZED
public static final ActivityIdReusePolicy UNRECOGNIZED
-
-
Field Detail
-
ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED_VALUE
public static final int ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED_VALUE
ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_VALUE
public static final int ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_VALUE
Always allow starting an activity using the same activity ID.
ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1;- See Also:
- Constant Field Values
-
ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY_VALUE
public static final int ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY_VALUE
Allow starting an activity using the same ID only when the last activity's final state is one of {failed, canceled, terminated, timed out}.ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2;- See Also:
- Constant Field Values
-
ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE_VALUE
public static final int ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE_VALUE
Do not permit re-use of the ID for this activity. Future start requests could potentially change the policy, allowing re-use of the ID.
ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ActivityIdReusePolicy[] 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 (ActivityIdReusePolicy c : ActivityIdReusePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActivityIdReusePolicy 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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ActivityIdReusePolicy 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 ActivityIdReusePolicy 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<ActivityIdReusePolicy> 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
public static ActivityIdReusePolicy 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
-
-