Enum AbstractScheduledAction.CompensatingActionMode
- java.lang.Object
-
- java.lang.Enum<AbstractScheduledAction.CompensatingActionMode>
-
- org.alfresco.repo.action.scheduled.AbstractScheduledAction.CompensatingActionMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AbstractScheduledAction.CompensatingActionMode>
- Enclosing class:
- AbstractScheduledAction
public static enum AbstractScheduledAction.CompensatingActionMode extends java.lang.Enum<AbstractScheduledAction.CompensatingActionMode>
Enum to define if compensating actions are run.- Author:
- Andy Hind
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IGNOREIgnore compensating actionsRUN_COMPENSATING_ACTIONS_ON_FAILUREIf failure occurs run the comensating actions.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractScheduledAction.CompensatingActionModegetCompensatingActionMode(java.lang.String compensatingActionModeString)Parse a string to a compensating action mode - used in reading the config.static AbstractScheduledAction.CompensatingActionModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AbstractScheduledAction.CompensatingActionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUN_COMPENSATING_ACTIONS_ON_FAILURE
public static final AbstractScheduledAction.CompensatingActionMode RUN_COMPENSATING_ACTIONS_ON_FAILURE
If failure occurs run the comensating actions.
-
IGNORE
public static final AbstractScheduledAction.CompensatingActionMode IGNORE
Ignore compensating actions
-
-
Method Detail
-
values
public static AbstractScheduledAction.CompensatingActionMode[] 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 (AbstractScheduledAction.CompensatingActionMode c : AbstractScheduledAction.CompensatingActionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractScheduledAction.CompensatingActionMode 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
-
getCompensatingActionMode
public static AbstractScheduledAction.CompensatingActionMode getCompensatingActionMode(java.lang.String compensatingActionModeString)
Parse a string to a compensating action mode - used in reading the config.- Parameters:
compensatingActionModeString- String- Returns:
- - the compensating action mode.
-
-