public class ServiceEntry extends AbstractServiceEntry
name
Constructor and Description |
---|
ServiceEntry(AbstractServiceEntry entry)
Creates a copy from another entry.
|
ServiceEntry(java.lang.String name,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
See https://www.consul.io/api/agent/service.html#name.
|
public ServiceEntry(@Nullable java.lang.String name, @Nullable java.lang.String id)
name
- The nameid
- The idpublic ServiceEntry(AbstractServiceEntry entry)
entry
- The entrypublic java.lang.String getName()
getName
in class AbstractServiceEntry