Enum Class SubscriberAckMode

java.lang.Object
java.lang.Enum<SubscriberAckMode>
com.mulesoft.extension.mq.api.modes.SubscriberAckMode
All Implemented Interfaces:
Serializable, Comparable<SubscriberAckMode>, java.lang.constant.Constable

public enum SubscriberAckMode extends Enum<SubscriberAckMode>
Defines the behavior of the Anypoint MQ Subscriber regarding the acknowledgement of the messages retrieved.
  • Enum Constant Details

    • IMMEDIATE

      public static final SubscriberAckMode IMMEDIATE
      The message will be ACKed as soon as it is dispatched to the flow. If the processing of the message fails during the execution of the flow, it has to be handled by the application.
    • AUTO

      public static final SubscriberAckMode AUTO
      The message will be ACKed only if the flow that processes it finishes successfully. If an error is propagated during the execution of the flow, finalizing the execution with an error, then the subscriber listener will NACK the message, effectively returning it to the destination for redelivery. In case the flow processing is not completed before the acknowledgement TTL is evicted, then the message will be returned automatically to the destination by the broker for its redelivery.
    • MANUAL

      public static final SubscriberAckMode MANUAL
      The subscriber will not handle any aspect of the acknowledgement of the message. Once it is dispatched to the flow, for processing, the application is in charge of performing either an ACK or a NACK. If none is performed before the acknowledgement TTL is evicted, then the message will be returned automatically to the destination by the broker for its redelivery.
  • Method Details

    • values

      public static SubscriberAckMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SubscriberAckMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null