Class CatalogEntry

java.lang.Object
io.micronaut.discovery.consul.client.v1.NodeEntry
io.micronaut.discovery.consul.client.v1.CatalogEntry

@Deprecated(since="4.1.0", forRemoval=true) public class CatalogEntry extends NodeEntry
Deprecated, for removal: This API element is subject to removal in a future version.
Use ConsulCatalogEntry instead.
A catalog entry in Consul. See https://www.consul.io/api/catalog.html.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • CatalogEntry

      public CatalogEntry(String nodeId, InetAddress address)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new catalog entry.
      Parameters:
      nodeId - The node ID
      address - The node address
  • Method Details

    • datacenter

      public CatalogEntry datacenter(String datacenter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      datacenter in class NodeEntry
      Parameters:
      datacenter - The datacenter
      Returns:
      The NodeEntry instance
    • taggedAddresses

      public CatalogEntry taggedAddresses(Map<String,String> taggedAddresses)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      taggedAddresses in class NodeEntry
      Parameters:
      taggedAddresses - The tagged addresses
      Returns:
      The NodeEntry instance
    • nodeMetadata

      public CatalogEntry nodeMetadata(Map<String,String> nodeMetadata)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      nodeMetadata in class NodeEntry
      Parameters:
      nodeMetadata - The node metadata
      Returns:
      The NodeEntry instance
    • getService

      public Optional<NewServiceEntry> getService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      See https://www.consul.io/api/catalog.html#service.
      Returns:
      The service
    • setService

      public void setService(NewServiceEntry service)
      Deprecated, for removal: This API element is subject to removal in a future version.
      See https://www.consul.io/api/catalog.html#service.
      Parameters:
      service - The service
    • service

      public CatalogEntry service(NewServiceEntry service)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      service - The service
      Returns:
      The CatalogEntry instance