Enum Class ConsumerActionType
- All Implemented Interfaces:
Serializable
,Comparable<ConsumerActionType>
,Constable
An Enum enumerating all valid types of
ConsumerAction
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionKILL action has higher priority than others, so that once KILL action is added to the action queue, we will process it immediately to avoid doing throw-away works. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsumerActionType
Returns the enum constant of this class with the specified name.static ConsumerActionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUBSCRIBE
-
UNSUBSCRIBE
-
RESET_OFFSET
-
PAUSE
-
RESUME
-
DROP_PARTITION
-
KILL
KILL action has higher priority than others, so that once KILL action is added to the action queue, we will process it immediately to avoid doing throw-away works. -
STANDBY_TO_LEADER
-
LEADER_TO_STANDBY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-