public enum QualityOfService extends Enum<QualityOfService>
Enum Constant and Description |
---|
AT_LEAST_ONCE
Message will be delivered at least once.
|
AT_MOST_ONCE
Message will be delivered at most once, or may not be delivered at all.
|
EXACTLY_ONCE
The message is always delivered exactly once.
|
Modifier and Type | Method and Description |
---|---|
static QualityOfService |
getEnumValueFromInteger(int value) |
int |
getValue() |
static QualityOfService |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QualityOfService[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QualityOfService AT_MOST_ONCE
public static final QualityOfService AT_LEAST_ONCE
public static final QualityOfService EXACTLY_ONCE
public static QualityOfService[] values()
for (QualityOfService c : QualityOfService.values()) System.out.println(c);
public static QualityOfService 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 getValue()
public static QualityOfService getEnumValueFromInteger(int value)
Copyright © 2021. All rights reserved.