public enum ConsumerStopAction extends Enum<ConsumerStopAction>
Enum Constant and Description |
---|
UNSUBSCRIBE_ALWAYS
Always unsubscribe.
|
UNSUBSCRIBE_CLEAN
Unsubscribe if clean session is true.
|
UNSUBSCRIBE_NEVER
Never unsubscribe.
|
Modifier and Type | Method and Description |
---|---|
static ConsumerStopAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsumerStopAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsumerStopAction UNSUBSCRIBE_NEVER
public static final ConsumerStopAction UNSUBSCRIBE_ALWAYS
public static final ConsumerStopAction UNSUBSCRIBE_CLEAN
public static ConsumerStopAction[] values()
for (ConsumerStopAction c : ConsumerStopAction.values()) System.out.println(c);
public static ConsumerStopAction 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 null