Home
last modified time | relevance | path

Searched refs:tokenRatio (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DRetriableStream.java934 final int tokenRatio; field in RetriableStream.Throttle
938 Throttle(float maxTokens, float tokenRatio) { in Throttle() argument
940 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()
DServiceConfigUtil.java94 float tokenRatio = getDouble(throttling, "tokenRatio").floatValue(); in getThrottlePolicy() local
96 checkState(tokenRatio > 0f, "tokenRatio should be greater than zero"); in getThrottlePolicy()
97 return new Throttle(maxTokens, tokenRatio); in getThrottlePolicy()