Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for doSetRate (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

        super(stopwatch);
      }
    
      @Override
      final void doSetRate(double permitsPerSecond, long nowMicros) {
        resync(nowMicros);
        double stableIntervalMicros = SECONDS.toMicros(1L) / permitsPerSecond;
        this.stableIntervalMicros = stableIntervalMicros;
        doSetRate(permitsPerSecond, stableIntervalMicros);
      }
    
      abstract void doSetRate(double permitsPerSecond, double stableIntervalMicros);
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       */
      public final void setRate(double permitsPerSecond) {
        checkArgument(permitsPerSecond > 0.0, "rate must be positive");
        synchronized (mutex()) {
          doSetRate(permitsPerSecond, stopwatch.readMicros());
        }
      }
    
      abstract void doSetRate(double permitsPerSecond, long nowMicros);
    
      /**
       * Returns the stable rate (as {@code permits per seconds}) with which this {@code RateLimiter} is
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:05:27 GMT 2025
    - 21.8K bytes
    - Click Count (0)
Back to Top