Package com.netflix.eureka.util.batcher
Enum TaskProcessor.ProcessingResult
- java.lang.Object
-
- java.lang.Enum<TaskProcessor.ProcessingResult>
-
- com.netflix.eureka.util.batcher.TaskProcessor.ProcessingResult
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TaskProcessor.ProcessingResult>
- Enclosing interface:
- TaskProcessor<T>
public static enum TaskProcessor.ProcessingResult extends java.lang.Enum<TaskProcessor.ProcessingResult>
A processed task/task list ends up in one of the following states:Successprocessing finished successfullyTransientErrorprocessing failed, but shall be retried laterPermanentErrorprocessing failed, and is non recoverable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CongestionPermanentErrorSuccessTransientError
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskProcessor.ProcessingResultvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TaskProcessor.ProcessingResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Success
public static final TaskProcessor.ProcessingResult Success
-
Congestion
public static final TaskProcessor.ProcessingResult Congestion
-
TransientError
public static final TaskProcessor.ProcessingResult TransientError
-
PermanentError
public static final TaskProcessor.ProcessingResult PermanentError
-
-
Method Detail
-
values
public static TaskProcessor.ProcessingResult[] 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 (TaskProcessor.ProcessingResult c : TaskProcessor.ProcessingResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskProcessor.ProcessingResult 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
-
-