Enum 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:
    • Success processing finished successfully
    • TransientError processing failed, but shall be retried later
    • PermanentError processing failed, and is non recoverable
    • 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 name
        java.lang.NullPointerException - if the argument is null