Package ru.yoomoney.tech.dbqueue.api
Enum TaskExecutionResult.Type
- java.lang.Object
-
- java.lang.Enum<TaskExecutionResult.Type>
-
- ru.yoomoney.tech.dbqueue.api.TaskExecutionResult.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TaskExecutionResult.Type>
- Enclosing class:
- TaskExecutionResult
public static enum TaskExecutionResult.Type extends java.lang.Enum<TaskExecutionResult.Type>
Action performed after task processing
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskExecutionResult.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TaskExecutionResult.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REENQUEUE
public static final TaskExecutionResult.Type REENQUEUE
Postpone (re-enqueue) the task, so that the task will be executed again
-
FINISH
public static final TaskExecutionResult.Type FINISH
Finish the task, task will be removed from the queue
-
FAIL
public static final TaskExecutionResult.Type FAIL
Notify on error task execution, task will be postponed and executed again
-
-
Method Detail
-
values
public static TaskExecutionResult.Type[] 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 (TaskExecutionResult.Type c : TaskExecutionResult.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskExecutionResult.Type 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
-
-