Record Class FlowControlLimits
java.lang.Object
java.lang.Record
io.camunda.zeebe.logstreams.impl.flowcontrol.FlowControlLimits
-
Constructor Summary
ConstructorsConstructorDescriptionFlowControlLimits(com.netflix.concurrency.limits.Limit requestLimiter, RateLimit writeRateLimit) Creates an instance of aFlowControlLimitsrecord 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.com.netflix.concurrency.limits.LimitReturns the value of therequestLimiterrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewriteRateLimitrecord component.
-
Constructor Details
-
FlowControlLimits
public FlowControlLimits(com.netflix.concurrency.limits.Limit requestLimiter, RateLimit writeRateLimit) Creates an instance of aFlowControlLimitsrecord class.- Parameters:
requestLimiter- the value for therequestLimiterrecord componentwriteRateLimit- the value for thewriteRateLimitrecord component
-
-
Method Details
-
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. -
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. -
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). -
requestLimiter
public com.netflix.concurrency.limits.Limit requestLimiter()Returns the value of therequestLimiterrecord component.- Returns:
- the value of the
requestLimiterrecord component
-
writeRateLimit
Returns the value of thewriteRateLimitrecord component.- Returns:
- the value of the
writeRateLimitrecord component
-