Class ServiceEntry
java.lang.Object
io.micronaut.discovery.consul.client.v1.AbstractServiceEntry
io.micronaut.discovery.consul.client.v1.ServiceEntry
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from class io.micronaut.discovery.consul.client.v1.AbstractServiceEntry
name
-
Constructor Summary
ConstructorsConstructorDescriptionServiceEntry
(@Nullable String name, @Nullable String id) ServiceEntry
(AbstractServiceEntry entry) Creates a copy from another entry. -
Method Summary
-
Constructor Details
-
ServiceEntry
- Parameters:
name
- The nameid
- The id
-
ServiceEntry
Creates a copy from another entry.- Parameters:
entry
- The entry
-
-
Method Details
-
getName
See https://www.consul.io/api/agent/service.html#name.- Overrides:
getName
in classAbstractServiceEntry
- Returns:
- The name of the service
-