Enum Class IdReusePolicy
- All Implemented Interfaces:
Serializable, Comparable<IdReusePolicy>, Constable
Controls whether
Client.startFlow(Flow, String, I) may reuse an existing Flow ID.
Set the policy with StartFlowOptions.Builder.idReusePolicy. The policy is evaluated by
the server against prior and currently running executions with the same Flow ID.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllows reuse when no execution with the ID is currently running.Allows reuse only when the previous execution ended abnormally.Uses the Dex server default, which rejects every previously used Flow ID.Rejects every attempt to reuse the Flow ID.Terminates a running execution before starting the replacement. -
Method Summary
Modifier and TypeMethodDescriptionstatic IdReusePolicyReturns the enum constant of this class with the specified name.static IdReusePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Uses the Dex server default, which rejects every previously used Flow ID. -
ALLOW_IF_PREVIOUS_FAILED
Allows reuse only when the previous execution ended abnormally. -
ALLOW_IF_NOT_RUNNING
Allows reuse when no execution with the ID is currently running. -
DISALLOW
Rejects every attempt to reuse the Flow ID. -
TERMINATE_IF_RUNNING
Terminates a running execution before starting the replacement.
-
-
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
-