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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
cloudPlatform
Returns the value of thecloudPlatformrecord component.- Returns:
- the value of the
cloudPlatformrecord component
-
inside
-
pod
-