public static enum JmsProperties.AcknowledgeMode extends Enum<JmsProperties.AcknowledgeMode>
Session
.
Session.SESSION_TRANSACTED
is not defined as we take care of this
already via a call to setSessionTransacted
.
Enum Constant and Description |
---|
AUTO
Messages sent or received from the session are automatically acknowledged.
|
CLIENT
Messages are acknowledged once the message listener implementation has called
Message.acknowledge() . |
DUPS_OK
Similar to auto acknowledgment except that said acknowledgment is lazy.
|
Modifier and Type | Method and Description |
---|---|
int |
getMode() |
static JmsProperties.AcknowledgeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JmsProperties.AcknowledgeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JmsProperties.AcknowledgeMode AUTO
public static final JmsProperties.AcknowledgeMode CLIENT
Message.acknowledge()
. This mode gives the application
(rather than the JMS provider) complete control over message acknowledgement.public static final JmsProperties.AcknowledgeMode DUPS_OK
public static JmsProperties.AcknowledgeMode[] values()
for (JmsProperties.AcknowledgeMode c : JmsProperties.AcknowledgeMode.values()) System.out.println(c);
public static JmsProperties.AcknowledgeMode 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 getMode()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.