Enum ConsulMetadataKey
- java.lang.Object
-
- java.lang.Enum<ConsulMetadataKey>
-
- io.smallrye.stork.servicediscovery.consul.ConsulMetadataKey
-
- All Implemented Interfaces:
io.smallrye.stork.api.MetadataKey,Serializable,Comparable<ConsulMetadataKey>
public enum ConsulMetadataKey extends Enum<ConsulMetadataKey> implements io.smallrye.stork.api.MetadataKey
-
-
Enum Constant Summary
Enum Constants Enum Constant Description META_CONSUL_SERVICE_IDMETA_CONSUL_SERVICE_NODEMETA_CONSUL_SERVICE_NODE_ADDRESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static ConsulMetadataKeyvalueOf(String name)Returns the enum constant of this type with the specified name.static ConsulMetadataKey[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
META_CONSUL_SERVICE_ID
public static final ConsulMetadataKey META_CONSUL_SERVICE_ID
-
META_CONSUL_SERVICE_NODE
public static final ConsulMetadataKey META_CONSUL_SERVICE_NODE
-
META_CONSUL_SERVICE_NODE_ADDRESS
public static final ConsulMetadataKey META_CONSUL_SERVICE_NODE_ADDRESS
-
-
Method Detail
-
values
public static ConsulMetadataKey[] 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 (ConsulMetadataKey c : ConsulMetadataKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsulMetadataKey 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
-
getName
public String getName()
- Specified by:
getNamein interfaceio.smallrye.stork.api.MetadataKey
-
-