Enum Class AbstractScheduledAction.CompensatingActionMode
java.lang.Object
java.lang.Enum<AbstractScheduledAction.CompensatingActionMode>
org.alfresco.repo.action.scheduled.AbstractScheduledAction.CompensatingActionMode
- All Implemented Interfaces:
Serializable,Comparable<AbstractScheduledAction.CompensatingActionMode>,Constable
- Enclosing class:
- AbstractScheduledAction
public static enum AbstractScheduledAction.CompensatingActionMode
extends Enum<AbstractScheduledAction.CompensatingActionMode>
Enum to define if compensating actions are run.
- Author:
- Andy Hind
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIgnore compensating actionsIf failure occurs run the comensating actions. -
Method Summary
Modifier and TypeMethodDescriptiongetCompensatingActionMode(String compensatingActionModeString) Parse a string to a compensating action mode - used in reading the config.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUN_COMPENSATING_ACTIONS_ON_FAILURE
public static final AbstractScheduledAction.CompensatingActionMode RUN_COMPENSATING_ACTIONS_ON_FAILUREIf failure occurs run the comensating actions. -
IGNORE
Ignore compensating actions
-
-
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
-
getCompensatingActionMode
public static AbstractScheduledAction.CompensatingActionMode getCompensatingActionMode(String compensatingActionModeString) Parse a string to a compensating action mode - used in reading the config.- Parameters:
compensatingActionModeString- String- Returns:
- - the compensating action mode.
-