Enum NoRestartBackoffTimeStrategy

    • Method Detail

      • values

        public static NoRestartBackoffTimeStrategy[] 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 (NoRestartBackoffTimeStrategy c : NoRestartBackoffTimeStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NoRestartBackoffTimeStrategy valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • notifyFailure

        public boolean notifyFailure​(Throwable cause)
        Description copied from interface: RestartBackoffTimeStrategy
        Notify the strategy about the task failure cause.
        Specified by:
        notifyFailure in interface RestartBackoffTimeStrategy
        Parameters:
        cause - of the task failure
        Returns:
        True means that the current failure is the first one after the most-recent failure handling happened, false means that there has been a failure before that was not handled, yet, and the current failure will be considered in a combined failure handling effort.