Record Class ServiceConfig.HealthCheckConfig
java.lang.Object
java.lang.Record
org.springframework.boot.grpc.client.autoconfigure.ServiceConfig.HealthCheckConfig
- Record Components:
serviceName- service name to use in the health-checking request.
- Enclosing class:
ServiceConfig
-
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckConfig(String serviceName) Creates an instance of aHealthCheckConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserviceNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HealthCheckConfig
Creates an instance of aHealthCheckConfigrecord class.- Parameters:
serviceName- the value for theserviceNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-