Enum Class SubscriberAckMode
- All Implemented Interfaces:
Serializable,Comparable<SubscriberAckMode>,java.lang.constant.Constable
Defines the behavior of the Anypoint MQ Subscriber regarding the acknowledgement of the messages retrieved.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriberAckModeReturns the enum constant of this class with the specified name.static SubscriberAckMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-