Class ServiceEntry

java.lang.Object
io.micronaut.discovery.consul.client.v1.AbstractServiceEntry
io.micronaut.discovery.consul.client.v1.ServiceEntry

@Deprecated(forRemoval=true, since="4.1.0") public class ServiceEntry extends AbstractServiceEntry
Deprecated, for removal: This API element is subject to removal in a future version.
Use ConsulServiceEntry instead.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • ServiceEntry

      public ServiceEntry(@Nullable @Nullable String name, @Nullable @Nullable String id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      name - The name
      id - The id
    • ServiceEntry

      public ServiceEntry(AbstractServiceEntry entry)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a copy from another entry.
      Parameters:
      entry - The entry
  • Method Details

    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      See https://www.consul.io/api/agent/service.html#name.
      Overrides:
      getName in class AbstractServiceEntry
      Returns:
      The name of the service