Record Class ExternalNameKubernetesServiceInstance
java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.commons.discovery.ExternalNameKubernetesServiceInstance
- All Implemented Interfaces:
Serializable, org.springframework.cloud.client.ServiceInstance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getHost()intgetPort()getUri()final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.Returns the value of theinstanceIdrecord component.booleanisSecure()metadata()Returns the value of themetadatarecord component.Returns the value of theserviceIdrecord component.final StringtoString()Returns a string representation of this record class.type()Methods inherited from interface org.springframework.cloud.client.ServiceInstance
getScheme
-
Constructor Details
-
ExternalNameKubernetesServiceInstance
public ExternalNameKubernetesServiceInstance(String serviceId, String host, String instanceId, Map<String, String> metadata) Creates an instance of aExternalNameKubernetesServiceInstancerecord class.- Parameters:
serviceId- the value for theserviceIdrecord componenthost- the value for thehostrecord componentinstanceId- the value for theinstanceIdrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
- Specified by:
getHostin interfaceorg.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.springframework.cloud.client.ServiceInstance
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceorg.springframework.cloud.client.ServiceInstance
-
getUri
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
-
getInstanceId
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
type
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
serviceId
Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
metadata
-