public abstract class AbstractServiceEntry extends Object
| Constructor and Description | 
|---|
AbstractServiceEntry(String name)  | 
| Modifier and Type | Method and Description | 
|---|---|
AbstractServiceEntry | 
address(InetAddress address)  | 
AbstractServiceEntry | 
address(String address)  | 
boolean | 
equals(Object o)  | 
Optional<InetAddress> | 
getAddress()
See https://www.consul.io/api/agent/service.html#address. 
 | 
Optional<String> | 
getID()
See https://www.consul.io/api/agent/service.html#id. 
 | 
String | 
getName()
See https://www.consul.io/api/agent/service.html#name. 
 | 
OptionalInt | 
getPort()
See https://www.consul.io/api/agent/service.html#address. 
 | 
List<String> | 
getTags()
See https://www.consul.io/api/agent/service.html#tags. 
 | 
int | 
hashCode()  | 
AbstractServiceEntry | 
id(String id)  | 
AbstractServiceEntry | 
port(Integer port)  | 
void | 
setAddress(InetAddress address)
See https://www.consul.io/api/agent/service.html#address. 
 | 
void | 
setID(String id)
See https://www.consul.io/api/agent/service.html#id. 
 | 
void | 
setPort(Integer port)
See https://www.consul.io/api/agent/service.html#address. 
 | 
void | 
setTags(List<String> tags)
See https://www.consul.io/api/agent/service.html#tags. 
 | 
AbstractServiceEntry | 
tags(List<String> tags)  | 
protected final String name
public AbstractServiceEntry(String name)
name - The service namepublic Optional<String> getID()
public void setID(String id)
id - The ID of the servicepublic Optional<InetAddress> getAddress()
public void setAddress(InetAddress address)
address - The address of the servicepublic OptionalInt getPort()
public void setPort(Integer port)
port - The port of the servicepublic List<String> getTags()
public void setTags(List<String> tags)
tags - The service tagspublic String getName()
public AbstractServiceEntry id(String id)
id - The id of the serviceAbstractServiceEntry instancepublic AbstractServiceEntry address(InetAddress address)
address - The InetAddress of the serviceAbstractServiceEntry instancepublic AbstractServiceEntry address(String address)
address - The address of the serviceAbstractServiceEntry instancepublic AbstractServiceEntry port(Integer port)
port - The port of the serviceAbstractServiceEntry instancepublic AbstractServiceEntry tags(List<String> tags)
tags - The service tagsAbstractServiceEntry instance