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 SummaryConstructorsConstructorDescriptionConsulCatalogEntry(@Nullable String node, @Nullable InetAddress address, @Nullable String datacenter, @Nullable Map<String, String> taggedAddresses, @Nullable Map<String, String> nodeMetadata, @Nullable ConsulNewServiceEntry service) Creates an instance of aConsulCatalogEntryrecord class.
- 
Method SummaryModifier and TypeMethodDescription@Nullable InetAddressaddress()Returns the value of theaddressrecord component.@Nullable StringReturns the value of thedatacenterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringnode()Returns the value of thenoderecord component.Returns the value of thenodeMetadatarecord component.@Nullable ConsulNewServiceEntryservice()Returns the value of theservicerecord component.Returns the value of thetaggedAddressesrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
ConsulCatalogEntrypublic 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 aConsulCatalogEntryrecord class.- Parameters:
- node- the value for the- noderecord component
- address- the value for the- addressrecord component
- datacenter- the value for the- datacenterrecord component
- taggedAddresses- the value for the- taggedAddressesrecord component
- nodeMetadata- the value for the- nodeMetadatarecord component
- service- the value for the- servicerecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 withObjects::equals(Object,Object).
- 
nodeReturns the value of thenoderecord component.- Returns:
- the value of the noderecord component
 
- 
addressReturns the value of theaddressrecord component.- Returns:
- the value of the addressrecord component
 
- 
datacenterReturns the value of thedatacenterrecord component.- Returns:
- the value of the datacenterrecord component
 
- 
taggedAddressesReturns the value of thetaggedAddressesrecord component.- Returns:
- the value of the taggedAddressesrecord component
 
- 
nodeMetadataReturns the value of thenodeMetadatarecord component.- Returns:
- the value of the nodeMetadatarecord component
 
- 
serviceReturns the value of theservicerecord component.- Returns:
- the value of the servicerecord component
 
 
-