public enum ProtocolVersion extends Enum<ProtocolVersion>
| Modifier and Type | Method and Description |
|---|---|
String |
asConfigValue() |
String |
endpoint() |
List<String> |
endpointsToProbe() |
List<String> |
fallback() |
static ProtocolVersion |
fromConfigValue(String value) |
static ProtocolVersion |
fromTraceEndpoint(String endpoint) |
static ProtocolVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolVersion V0_4
public static final ProtocolVersion V0_5
public static final ProtocolVersion V1_0
public static ProtocolVersion[] values()
for (ProtocolVersion c : ProtocolVersion.values()) System.out.println(c);
public static ProtocolVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String asConfigValue()
public String endpoint()
public static ProtocolVersion fromConfigValue(String value)
public static ProtocolVersion fromTraceEndpoint(String endpoint)