Record Class ConsulCatalogEntry

java.lang.Object
java.lang.Record
io.micronaut.discovery.consul.client.v1.ConsulCatalogEntry
Record Components:
node - Node ID
address - Address
datacenter - Datacenter
taggedAddresses - Tagged addresses
nodeMetadata - Node metadata
service - Service

public record ConsulCatalogEntry(@Nullable String node, @Nullable InetAddress address, @Nullable String datacenter, @Nullable Map<String,String> taggedAddresses, @Nullable Map<String,String> nodeMetadata, @Nullable ConsulNewServiceEntry service) extends Record
A catalog entry in Consul.
Since:
4.1.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • ConsulCatalogEntry

      public ConsulCatalogEntry(@Nullable @Nullable String node, @Nullable @Nullable InetAddress address, @Nullable @Nullable String datacenter, @Nullable @Nullable Map<String,String> taggedAddresses, @Nullable @Nullable Map<String,String> nodeMetadata, @Nullable @Nullable ConsulNewServiceEntry service)
      Creates an instance of a ConsulCatalogEntry record class.
      Parameters:
      node - the value for the node record component
      address - the value for the address record component
      datacenter - the value for the datacenter record component
      taggedAddresses - the value for the taggedAddresses record component
      nodeMetadata - the value for the nodeMetadata record component
      service - the value for the service record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • node

      @Nullable public @Nullable String node()
      Returns the value of the node record component.
      Returns:
      the value of the node record component
    • address

      @Nullable public @Nullable InetAddress address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • datacenter

      @Nullable public @Nullable String datacenter()
      Returns the value of the datacenter record component.
      Returns:
      the value of the datacenter record component
    • taggedAddresses

      @Nullable public @Nullable Map<String,String> taggedAddresses()
      Returns the value of the taggedAddresses record component.
      Returns:
      the value of the taggedAddresses record component
    • nodeMetadata

      @Nullable public @Nullable Map<String,String> nodeMetadata()
      Returns the value of the nodeMetadata record component.
      Returns:
      the value of the nodeMetadata record component
    • service

      @Nullable public @Nullable ConsulNewServiceEntry service()
      Returns the value of the service record component.
      Returns:
      the value of the service record component