public enum ConfirmationMode extends Enum<ConfirmationMode>
Enum Constant and Description |
---|
NONE |
TRANSACTIONAL |
WAIT_FOR_ACK |
Modifier and Type | Method and Description |
---|---|
boolean |
isTransactional() |
boolean |
isWaitForAck() |
static ConfirmationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfirmationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfirmationMode TRANSACTIONAL
public static final ConfirmationMode WAIT_FOR_ACK
public static final ConfirmationMode NONE
public static ConfirmationMode[] values()
for (ConfirmationMode c : ConfirmationMode.values()) System.out.println(c);
public static ConfirmationMode 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 boolean isTransactional()
public boolean isWaitForAck()
Copyright © 2010–2018. All rights reserved.