Record Class ServiceConfig.LoadBalancingConfig.GrpcLoadBalancingConfig
java.lang.Object
java.lang.Record
org.springframework.boot.grpc.client.autoconfigure.ServiceConfig.LoadBalancingConfig.GrpcLoadBalancingConfig
- Record Components:
child- what load balancer policies to use for routing between the backend addressesserviceName- override of the service name to be sent to the balancerinitialFallbackTimeout- timeout in seconds for receiving the server list
- Enclosing class:
ServiceConfig.LoadBalancingConfig
public static record ServiceConfig.LoadBalancingConfig.GrpcLoadBalancingConfig(List<ServiceConfig.LoadBalancingConfig> child, String serviceName, Duration initialFallbackTimeout)
extends Record
'grpc' load balancing.
- Since:
- 4.1.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcLoadBalancingConfig(List<ServiceConfig.LoadBalancingConfig> child, String serviceName, Duration initialFallbackTimeout) Creates an instance of aGrpcLoadBalancingConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchild()Returns the value of thechildrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialFallbackTimeoutrecord component.Returns the value of theserviceNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GrpcLoadBalancingConfig
public GrpcLoadBalancingConfig(List<ServiceConfig.LoadBalancingConfig> child, String serviceName, Duration initialFallbackTimeout) Creates an instance of aGrpcLoadBalancingConfigrecord class.- Parameters:
child- the value for thechildrecord componentserviceName- the value for theserviceNamerecord componentinitialFallbackTimeout- the value for theinitialFallbackTimeoutrecord 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). -
child
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
initialFallbackTimeout
Returns the value of theinitialFallbackTimeoutrecord component.- Returns:
- the value of the
initialFallbackTimeoutrecord component
-