Package org.apache.pinot.spi.utils
Enum CommonConstants.Broker.FailureDetector.Type
- java.lang.Object
-
- java.lang.Enum<CommonConstants.Broker.FailureDetector.Type>
-
- org.apache.pinot.spi.utils.CommonConstants.Broker.FailureDetector.Type
-
- All Implemented Interfaces:
Serializable,Comparable<CommonConstants.Broker.FailureDetector.Type>,java.lang.constant.Constable
- Enclosing class:
- CommonConstants.Broker.FailureDetector
public static enum CommonConstants.Broker.FailureDetector.Type extends Enum<CommonConstants.Broker.FailureDetector.Type>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTIONCUSTOMNO_OP
-
Method Summary
Modifier and Type Method Description static CommonConstants.Broker.FailureDetector.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static CommonConstants.Broker.FailureDetector.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_OP
public static final CommonConstants.Broker.FailureDetector.Type NO_OP
-
CONNECTION
public static final CommonConstants.Broker.FailureDetector.Type CONNECTION
-
CUSTOM
public static final CommonConstants.Broker.FailureDetector.Type CUSTOM
-
-
Method Detail
-
values
public static CommonConstants.Broker.FailureDetector.Type[] 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
public static CommonConstants.Broker.FailureDetector.Type valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-