public enum InternalAckMode extends Enum<InternalAckMode>
commit, and recovery is handled automatically by rollback.
If a session is not transacted, there are four acknowledgment options:
Session.CLIENT_ACKNOWLEDGE mode. The user must do the ack manually within the flow.| Enum Constant and Description |
|---|
AUTO
This is JMS
Session.AUTO_ACKNOWLEDGE mode. |
DUPS_OK
Similar to AUTO, the JMS message is acknowledged automatically but in a lazy fashion which may lead to duplicates.
|
IMMEDIATE
Mule automatically ACKs the message upon reception
|
MANUAL
This is JMS
Session.CLIENT_ACKNOWLEDGE mode. |
TRANSACTED
Transacted Session don't have ACK
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAckModeValue() |
static InternalAckMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InternalAckMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InternalAckMode IMMEDIATE
public static final InternalAckMode AUTO
Session.AUTO_ACKNOWLEDGE mode. The session automatically acknowledges the receipt when it successfully
delivered the message to a JmsConsume.consume(org.mule.jms.commons.internal.config.JmsConfig, org.mule.jms.commons.internal.connection.JmsTransactionalConnection, java.lang.String, org.mule.jms.commons.api.destination.ConsumerType, org.mule.jms.commons.internal.config.JmsAckMode, java.lang.String, java.lang.String, java.lang.String, java.lang.Long, java.util.concurrent.TimeUnit, org.mule.runtime.extension.api.tx.OperationTransactionalAction) or JmsListener handler.public static final InternalAckMode MANUAL
Session.CLIENT_ACKNOWLEDGE mode. The user must do the ACK manually within the flowpublic static final InternalAckMode DUPS_OK
public static final InternalAckMode TRANSACTED
public static InternalAckMode[] values()
for (InternalAckMode c : InternalAckMode.values()) System.out.println(c);
public static InternalAckMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getAckModeValue()
Copyright © 2023. All rights reserved.