Enum Class FlowDurabilityHint
- All Implemented Interfaces:
Serializable
,Comparable<FlowDurabilityHint>
,Constable
Provides hints about just how hard we should try to protect our workflow from failures of the controller.
There is a trade-off between durability and performance, with higher levels carrying much higher overheads to execution.
Storage and persistence of data should try to provide at least the specified level (may offer more).
- Author:
- Sam Van Oort
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
For compatibility with Jelly, etc.boolean
Should we try to use an atomic write to protect from corrupting data with failures and errors during writes?boolean
If false, the flow has to complete one way or the other in order to be persisted.static FlowDurabilityHint
Returns the enum constant of this class with the specified name.static FlowDurabilityHint[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERFORMANCE_OPTIMIZED
-
SURVIVABLE_NONATOMIC
-
MAX_SURVIVABILITY
-
-
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
-
isAtomicWrite
public boolean isAtomicWrite()Should we try to use an atomic write to protect from corrupting data with failures and errors during writes? -
isPersistWithEveryStep
public boolean isPersistWithEveryStep()If false, the flow has to complete one way or the other in order to be persisted. -
getName
For compatibility with Jelly, etc. -
getDescription
-
getTooltip
-