Enum ConsumerActionType
- java.lang.Object
-
- java.lang.Enum<ConsumerActionType>
-
- com.linkedin.davinci.kafka.consumer.ConsumerActionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConsumerActionType>
public enum ConsumerActionType extends java.lang.Enum<ConsumerActionType>
An Enum enumerating all valid types ofConsumerAction
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.LEADER_TO_STANDBY
PAUSE
RESET_OFFSET
RESUME
STANDBY_TO_LEADER
SUBSCRIBE
UNSUBSCRIBE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConsumerActionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConsumerActionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUBSCRIBE
public static final ConsumerActionType SUBSCRIBE
-
UNSUBSCRIBE
public static final ConsumerActionType UNSUBSCRIBE
-
RESET_OFFSET
public static final ConsumerActionType RESET_OFFSET
-
PAUSE
public static final ConsumerActionType PAUSE
-
RESUME
public static final ConsumerActionType RESUME
-
DROP_PARTITION
public static final ConsumerActionType DROP_PARTITION
-
KILL
public static final ConsumerActionType 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
public static final ConsumerActionType STANDBY_TO_LEADER
-
LEADER_TO_STANDBY
public static final ConsumerActionType LEADER_TO_STANDBY
-
-
Method Detail
-
values
public static ConsumerActionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConsumerActionType c : ConsumerActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsumerActionType valueOf(java.lang.String name)
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
-
-