Enum DltStrategy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DltStrategy>

    public enum DltStrategy
    extends java.lang.Enum<DltStrategy>
    Strategies for handling DLT processing.
    Since:
    2.7
    Author:
    Tomaz Fernandes
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALWAYS_RETRY_ON_ERROR
      Always send the message back to the DLT for reprocessing in case of failure in DLT processing.
      FAIL_ON_ERROR
      Fail if DLT processing throws an error.
      NO_DLT
      Don't create a DLT.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DltStrategy valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DltStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NO_DLT

        public static final DltStrategy NO_DLT
        Don't create a DLT.
      • ALWAYS_RETRY_ON_ERROR

        public static final DltStrategy ALWAYS_RETRY_ON_ERROR
        Always send the message back to the DLT for reprocessing in case of failure in DLT processing.
      • FAIL_ON_ERROR

        public static final DltStrategy FAIL_ON_ERROR
        Fail if DLT processing throws an error.
    • Method Detail

      • values

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

        public static DltStrategy 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