Enum Class InternalAckMode
- All Implemented Interfaces:
Serializable,Comparable<InternalAckMode>,Constable
Declares the kind of Acknowledgement mode supported. If a session is transacted, message acknowledgment is handled
automatically by
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_ACKNOWLEDGEmode. 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.
- IMMEDIATE: Mule automatically ACKs the message upon reception.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is JMSSession.AUTO_ACKNOWLEDGEmode.Similar to AUTO, the JMS message is acknowledged automatically but in a lazy fashion which may lead to duplicates.Mule automatically ACKs the message upon receptionThis is JMSSession.CLIENT_ACKNOWLEDGEmode.Transacted Session don't have ACK -
Method Summary
Modifier and TypeMethodDescriptionintstatic InternalAckModeReturns the enum constant of this class with the specified name.static InternalAckMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMMEDIATE
Mule automatically ACKs the message upon reception -
AUTO
This is JMSSession.AUTO_ACKNOWLEDGEmode. The session automatically acknowledges the receipt when it successfully delivered the message to aJmsConsume.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)orJmsListenerhandler. -
MANUAL
This is JMSSession.CLIENT_ACKNOWLEDGEmode. The user must do the ACK manually within the flow -
DUPS_OK
Similar to AUTO, the JMS message is acknowledged automatically but in a lazy fashion which may lead to duplicates. -
TRANSACTED
Transacted Session don't have ACK
-
-
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
-
getAckModeValue
public int getAckModeValue()
-