public class NewServiceEntry extends AbstractServiceEntry
name| Constructor and Description | 
|---|
| NewServiceEntry(String serviceName) | 
| Modifier and Type | Method and Description | 
|---|---|
| NewServiceEntry | address(InetAddress address) | 
| NewServiceEntry | address(String address) | 
| NewServiceEntry | check(NewCheck check)See https://www.consul.io/api/agent/service.html#checks. | 
| NewServiceEntry | checks(List<NewCheck> checks)See https://www.consul.io/api/agent/service.html#checks. | 
| List<NewCheck> | getChecks()See https://www.consul.io/api/agent/service.html#checks. | 
| NewServiceEntry | id(String id) | 
| NewServiceEntry | port(Integer port) | 
| protected void | setChecks(List<HTTPCheck> checks) | 
| NewServiceEntry | tags(List<String> tags) | 
| NewServiceEntry | tags(String... tags) | 
equals, getAddress, getID, getName, getPort, getTags, hashCode, setAddress, setID, setPort, setTagspublic NewServiceEntry(String serviceName)
serviceName - The service namepublic List<NewCheck> getChecks()
public NewServiceEntry checks(List<NewCheck> checks)
checks - The health checksNewServiceEntry instancepublic NewServiceEntry check(NewCheck check)
check - The health checkNewServiceEntry instancepublic NewServiceEntry id(String id)
id in class AbstractServiceEntryid - The id of the serviceAbstractServiceEntry instancepublic NewServiceEntry address(InetAddress address)
address in class AbstractServiceEntryaddress - The InetAddress of the serviceAbstractServiceEntry instancepublic NewServiceEntry address(String address)
address in class AbstractServiceEntryaddress - The address of the serviceAbstractServiceEntry instancepublic NewServiceEntry port(Integer port)
port in class AbstractServiceEntryport - The port of the serviceAbstractServiceEntry instancepublic NewServiceEntry tags(List<String> tags)
tags in class AbstractServiceEntrytags - The service tagsAbstractServiceEntry instancepublic NewServiceEntry tags(String... tags)
tags - The tagsNewServiceEntry instance