Package com.netflix.eureka.registry
Enum Key.EntityType
- java.lang.Object
-
- java.lang.Enum<Key.EntityType>
-
- com.netflix.eureka.registry.Key.EntityType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Key.EntityType>
- Enclosing class:
- Key
public static enum Key.EntityType extends java.lang.Enum<Key.EntityType>
An enum to define the entity that is stored in this cache for this key.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ApplicationSVIPVIP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Key.EntityTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Key.EntityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Application
public static final Key.EntityType Application
-
VIP
public static final Key.EntityType VIP
-
SVIP
public static final Key.EntityType SVIP
-
-
Method Detail
-
values
public static Key.EntityType[] 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 (Key.EntityType c : Key.EntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Key.EntityType 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
-
-