Record Class KubernetesDiscoveryClientHealthIndicatorInitializer.RegisteredEventSource
java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryClientHealthIndicatorInitializer.RegisteredEventSource
- Record Components:
cloudPlatform- "kubernetes" alwaysinside- inside kubernetes or notpod- an actual pod or null, if we are outside kubernetes
- Enclosing class:
- KubernetesDiscoveryClientHealthIndicatorInitializer
-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredEventSource(String cloudPlatform, boolean inside, Object pod) Creates an instance of aRegisteredEventSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecloudPlatformrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninside()Returns the value of theinsiderecord component.pod()Returns the value of thepodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegisteredEventSource
Creates an instance of aRegisteredEventSourcerecord class.- Parameters:
cloudPlatform- the value for thecloudPlatformrecord componentinside- the value for theinsiderecord componentpod- the value for thepodrecord component
-
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
cloudPlatform
Returns the value of thecloudPlatformrecord component.- Returns:
- the value of the
cloudPlatformrecord component
-
inside
public boolean inside()Returns the value of theinsiderecord component.- Returns:
- the value of the
insiderecord component
-
pod
Returns the value of thepodrecord component.- Returns:
- the value of the
podrecord component
-