HomeSort by relevance Sort by last modified time
    Searched full:maxpermits (Results 1 - 2 of 2) sorted by null

  /external/guava/guava/src/com/google/common/util/concurrent/
RateLimiter.java 315 double maxPermits;
537 storedPermits = Math.min(maxPermits,
561 * 2*stable + / . halfPermits and maxPermits
566 * interval | . UP . } <-- this rectangle (from 0 to maxPermits, and
570 * (halfPermits) (maxPermits)
574 * 2) When the RateLimiter is not used, this goes right (up to maxPermits)
579 * (no matter what our initial position was), up to maxPermits.
608 * to go from maxPermits to halfPermits.
611 * to maxPermits, from halfPermits! (Because the trapezoid has double the area of the rectangle
615 * (with storedPermits == maxPermits) in the same amount of time it takes for a full
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
RateLimiterTest.java 301 int maxPermits = 10;
305 // Since we know that: maxPermits = 0.5 * warmup / stableInterval;
306 // then if maxPermits == 10, we have:
308 long warmupMillis = (long) ((2 * maxPermits / qps) * 1000.0);
311 assertEquals(warmupMillis, measureTotalTimeMillis(rateLimiter, maxPermits, random));

Completed in 58 milliseconds