Enum Class AcknowledgeMode
- All Implemented Interfaces:
Serializable,Comparable<AcknowledgeMode>,Constable
Enumeration equivalent for JMS api's
Session.AUTO_ACKNOWLEDGE,
Session.CLIENT_ACKNOWLEDGE and Session.DUPS_OK_ACKNOWLEDGE constants.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAcknowledges automatically after message reception over JMS api.Message is acknowledged whenMessage.ack()is invoked either manually or byAcknowledgmentpolicy.Messages are acknowledged lazily which can result in duplicate messages being delivered. -
Method Summary
Modifier and TypeMethodDescriptionintReturns JMS api constant equivalent of this ack mode as specified inConnection.createSession(boolean, int).static AcknowledgeModeReturns the enum constant of this class with the specified name.static AcknowledgeMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO_ACKNOWLEDGE
Acknowledges automatically after message reception over JMS api. -
CLIENT_ACKNOWLEDGE
Message is acknowledged whenMessage.ack()is invoked either manually or byAcknowledgmentpolicy. -
DUPS_OK_ACKNOWLEDGE
Messages are acknowledged lazily which can result in duplicate messages being delivered.
-
-
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
-
getAckMode
public int getAckMode()Returns JMS api constant equivalent of this ack mode as specified inConnection.createSession(boolean, int).- Returns:
- 1 for AUTO_ACKNOWLEDGE or 2 for CLIENT_ACKNOWLEDGE or 3 for DUPS_OK_ACKNOWLEDGE
-