Enum AcknowledgeMode
- java.lang.Object
-
- java.lang.Enum<AcknowledgeMode>
-
- io.helidon.messaging.connectors.jms.AcknowledgeMode
-
- All Implemented Interfaces:
Serializable
,Comparable<AcknowledgeMode>
public enum AcknowledgeMode extends Enum<AcknowledgeMode>
Enumeration equivalent for JMS api'sSession.AUTO_ACKNOWLEDGE
,Session.CLIENT_ACKNOWLEDGE
andSession.DUPS_OK_ACKNOWLEDGE
constants.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_ACKNOWLEDGE
Acknowledges automatically after message reception over JMS api.CLIENT_ACKNOWLEDGE
Message is acknowledged whenMessage.ack()
is invoked either manually or byAcknowledgment
policy.DUPS_OK_ACKNOWLEDGE
Messages are acknowledged lazily which can result in duplicate messages being delivered.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAckMode()
Returns JMS api constant equivalent of this ack mode as specified inConnection.createSession(boolean, int)
.static AcknowledgeMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static AcknowledgeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO_ACKNOWLEDGE
public static final AcknowledgeMode AUTO_ACKNOWLEDGE
Acknowledges automatically after message reception over JMS api.
-
CLIENT_ACKNOWLEDGE
public static final AcknowledgeMode CLIENT_ACKNOWLEDGE
Message is acknowledged whenMessage.ack()
is invoked either manually or byAcknowledgment
policy.
-
DUPS_OK_ACKNOWLEDGE
public static final AcknowledgeMode DUPS_OK_ACKNOWLEDGE
Messages are acknowledged lazily which can result in duplicate messages being delivered.
-
-
Method Detail
-
values
public static AcknowledgeMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AcknowledgeMode c : AcknowledgeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AcknowledgeMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-
-