public class ServiceEndpoint extends Descriptor implements Comparable<ServiceEndpoint>
name/protocolinstead.
Otherwise, a typical JSON representation might be:
{
"name" : "admin",
"protocol" : "http"
}
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceEndpoint.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP |
static String |
TCP |
static String |
UDP |
| Constructor and Description |
|---|
ServiceEndpoint(String str) |
ServiceEndpoint(String name,
String protocol) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ServiceEndpoint se) |
boolean |
equals(Object obj) |
String |
getName() |
String |
getProtocol() |
int |
hashCode() |
static ServiceEndpoint.Builder |
newBuilder() |
static ServiceEndpoint |
of(String service,
String proto) |
ServiceEndpoint.Builder |
toBuilder() |
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic static final String UDP
public static final String TCP
public static final String HTTP
public ServiceEndpoint(String str)
public String getName()
public String getProtocol()
public int compareTo(ServiceEndpoint se)
compareTo in interface Comparable<ServiceEndpoint>public static ServiceEndpoint.Builder newBuilder()
public ServiceEndpoint.Builder toBuilder()
public static ServiceEndpoint of(String service, String proto)
Copyright © 2019. All rights reserved.