Enum ConsumerStopAction
java.lang.Object
java.lang.Enum<ConsumerStopAction>
org.springframework.integration.mqtt.core.ConsumerStopAction
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConsumerStopAction>,java.lang.constant.Constable
public enum ConsumerStopAction extends java.lang.Enum<ConsumerStopAction>
Action to take regarding subscrptions when consumer stops.
- Since:
- 4.2.3
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description UNSUBSCRIBE_ALWAYSAlways unsubscribe.UNSUBSCRIBE_CLEANUnsubscribe if clean session is true.UNSUBSCRIBE_NEVERNever unsubscribe. -
Method Summary
Modifier and Type Method Description static ConsumerStopActionvalueOf(java.lang.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.
-
Enum Constant Details
-
UNSUBSCRIBE_NEVER
Never unsubscribe. -
UNSUBSCRIBE_ALWAYS
Always unsubscribe. -
UNSUBSCRIBE_CLEAN
Unsubscribe if clean session is true.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-