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 addresses
serviceName - override of the service name to be sent to the balancer
initialFallbackTimeout - 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • child

      Returns the value of the child record component.
      Returns:
      the value of the child record component
    • serviceName

      public String serviceName()
      Returns the value of the serviceName record component.
      Returns:
      the value of the serviceName record component
    • initialFallbackTimeout

      public Duration initialFallbackTimeout()
      Returns the value of the initialFallbackTimeout record component.
      Returns:
      the value of the initialFallbackTimeout record component