Enum ConsumerPoolType
- java.lang.Object
-
- java.lang.Enum<ConsumerPoolType>
-
- com.linkedin.davinci.kafka.consumer.ConsumerPoolType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConsumerPoolType>
public enum ConsumerPoolType extends java.lang.Enum<ConsumerPoolType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AA_WC_LEADER_POOL
The following pool types are being used when the dedicated AA/WC leader consumer pool feature is enabled.CURRENT_VERSION_AA_WC_LEADER_POOL
The followings pool types are being used when current version prioritization strategy is enabled.CURRENT_VERSION_NON_AA_WC_LEADER_POOL
CURRENT_VERSION_SEP_RT_LEADER_POOL
NON_CURRENT_VERSION_AA_WC_LEADER_POOL
NON_CURRENT_VERSION_NON_AA_WC_LEADER_POOL
REGULAR_POOL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getStatSuffix()
static ConsumerPoolType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConsumerPoolType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AA_WC_LEADER_POOL
public static final ConsumerPoolType AA_WC_LEADER_POOL
The following pool types are being used when the dedicated AA/WC leader consumer pool feature is enabled.
-
REGULAR_POOL
public static final ConsumerPoolType REGULAR_POOL
-
CURRENT_VERSION_AA_WC_LEADER_POOL
public static final ConsumerPoolType CURRENT_VERSION_AA_WC_LEADER_POOL
The followings pool types are being used when current version prioritization strategy is enabled. Eventually, this new strategy will replace the above one once it is fully validated and ramped.
-
CURRENT_VERSION_SEP_RT_LEADER_POOL
public static final ConsumerPoolType CURRENT_VERSION_SEP_RT_LEADER_POOL
-
CURRENT_VERSION_NON_AA_WC_LEADER_POOL
public static final ConsumerPoolType CURRENT_VERSION_NON_AA_WC_LEADER_POOL
-
NON_CURRENT_VERSION_AA_WC_LEADER_POOL
public static final ConsumerPoolType NON_CURRENT_VERSION_AA_WC_LEADER_POOL
-
NON_CURRENT_VERSION_NON_AA_WC_LEADER_POOL
public static final ConsumerPoolType NON_CURRENT_VERSION_NON_AA_WC_LEADER_POOL
-
-
Method Detail
-
values
public static ConsumerPoolType[] 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 (ConsumerPoolType c : ConsumerPoolType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsumerPoolType 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
-
getStatSuffix
public java.lang.String getStatSuffix()
-
-