Record Class ServiceConfig.RetryThrottlingPolicy
java.lang.Object
java.lang.Record
org.springframework.boot.grpc.client.autoconfigure.ServiceConfig.RetryThrottlingPolicy
- Record Components:
maxTokens- maximum number of tokenstokenRatio- the token ratio
- Enclosing class:
ServiceConfig
-
Constructor Summary
ConstructorsConstructorDescriptionRetryThrottlingPolicy(Float maxTokens, Float tokenRatio) Creates an instance of aRetryThrottlingPolicyrecord 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 themaxTokensrecord component.Returns the value of thetokenRatiorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RetryThrottlingPolicy
Creates an instance of aRetryThrottlingPolicyrecord class.- Parameters:
maxTokens- the value for themaxTokensrecord componenttokenRatio- the value for thetokenRatiorecord 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). -
maxTokens
-
tokenRatio
Returns the value of thetokenRatiorecord component.- Returns:
- the value of the
tokenRatiorecord component
-