Class ServiceEntry

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

public class ServiceEntry extends AbstractServiceEntry
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • ServiceEntry

      public ServiceEntry(@Nullable @Nullable String name, @Nullable @Nullable String id)
      Parameters:
      name - The name
      id - The id
    • ServiceEntry

      public ServiceEntry(AbstractServiceEntry entry)
      Creates a copy from another entry.
      Parameters:
      entry - The entry
  • Method Details

    • getName

      public String getName()
      See https://www.consul.io/api/agent/service.html#name.
      Overrides:
      getName in class AbstractServiceEntry
      Returns:
      The name of the service