public enum AckMode extends Enum<AckMode>
commit,
and recovery is handled automatically by rollback.
If a session is not transacted, there are four acknowledgment options:
AUTO: Mule ACKs the message only if the flow is finished successfully.
MANUAL: This is JMS Session.CLIENT_ACKNOWLEDGE mode. The user must do the ack manually within the flow.
DUPS_OK: JMS message is acked automatically but in a lazy fashion which may lead to duplicates.
NONE: Mule automatically ACKs the message upon reception.| 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.
|
MANUAL
This is JMS
Session.CLIENT_ACKNOWLEDGE mode. |
NONE
Mule automatically ACKs the message upon reception
|
TRANSACTED
Transacted Session don't have ACK
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAckMode() |
static AckMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AckMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AckMode NONE
public static final AckMode AUTO
Session.AUTO_ACKNOWLEDGE mode.
The session automatically acknowledges the receipt when it successfully delivered the message
to a JmsConsume.consume(org.mule.extensions.jms.api.connection.JmsConnection, org.mule.extensions.jms.api.config.JmsConfig, java.lang.String, org.mule.extensions.jms.api.destination.ConsumerType, org.mule.extensions.jms.api.config.AckMode, java.lang.String, java.lang.String, java.lang.String, java.lang.Long, java.util.concurrent.TimeUnit) or JmsListener handler.public static final AckMode MANUAL
Session.CLIENT_ACKNOWLEDGE mode. The user must do the ACK manually within the flowpublic static final AckMode DUPS_OK
public static final AckMode TRANSACTED
public static AckMode[] values()
for (AckMode c : AckMode.values()) System.out.println(c);
public static AckMode 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 getAckMode()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.