Searched refs:tokenRatio (Results 1 – 2 of 2) sorted by relevance
934 final int tokenRatio; field in RetriableStream.Throttle938 Throttle(float maxTokens, float tokenRatio) { in Throttle() argument940 this.tokenRatio = (int) (tokenRatio * THREE_DECIMAL_PLACES_SCALE_UP); in Throttle()978 int incremented = currentCount + tokenRatio; in onSuccess()995 return maxTokens == that.maxTokens && tokenRatio == that.tokenRatio; in equals()1000 return Objects.hashCode(maxTokens, tokenRatio); in hashCode()
94 float tokenRatio = getDouble(throttling, "tokenRatio").floatValue(); in getThrottlePolicy() local96 checkState(tokenRatio > 0f, "tokenRatio should be greater than zero"); in getThrottlePolicy()97 return new Throttle(maxTokens, tokenRatio); in getThrottlePolicy()