public enum QualityOfService extends Enum<QualityOfService>
| Enum Constant and Description |
|---|
EXACTLY_ONCE
The message is always delivered exactly once.
|
LEAST_ONCE
The message is always delivered at least once.
|
MOST_ONCE
The message is delivered at most once, or it may not be delivered at all.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Get the corresponding value for the given quality of service.
|
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 MOST_ONCE
public static final QualityOfService 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()
Copyright © 2019 WSO2. All rights reserved.