Enum Class JmsProperties.AcknowledgeMode
java.lang.Object
java.lang.Enum<JmsProperties.AcknowledgeMode>
org.springframework.boot.autoconfigure.jms.JmsProperties.AcknowledgeMode
- All Implemented Interfaces:
Serializable
,Comparable<JmsProperties.AcknowledgeMode>
,Constable
- Enclosing class:
- JmsProperties
Translate the acknowledge modes defined on the
Session
.
Session.SESSION_TRANSACTED
is not defined as we take care of
this already through a call to setSessionTransacted
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMessages sent or received from the session are automatically acknowledged.Messages are acknowledged once the message listener implementation has calledMessage.acknowledge()
.Similar to auto acknowledgment except that said acknowledgment is lazy. -
Method Summary
Modifier and TypeMethodDescriptionint
getMode()
Returns the enum constant of this class with the specified name.static JmsProperties.AcknowledgeMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Messages sent or received from the session are automatically acknowledged. This is the simplest mode and enables once-only message delivery guarantee. -
CLIENT
Messages are acknowledged once the message listener implementation has calledMessage.acknowledge()
. This mode gives the application (rather than the JMS provider) complete control over message acknowledgement. -
DUPS_OK
Similar to auto acknowledgment except that said acknowledgment is lazy. As a consequence, the messages might be delivered more than once. This mode enables at-least-once message delivery guarantee.
-
-
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
-
getMode
public int getMode()
-