Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for queryEarliestAvailable (0.41 sec)

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

          }
        }
        stopwatch.sleepMicrosUninterruptibly(microsToWait);
        return true;
      }
    
      private boolean canAcquire(long nowMicros, long timeoutMicros) {
        return queryEarliestAvailable(nowMicros) - timeoutMicros <= nowMicros;
      }
    
      /**
       * Reserves next ticket and returns the wait time that the caller must wait for.
       *
       * @return the required wait time, never negative
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/RateLimiter.java

          }
        }
        stopwatch.sleepMicrosUninterruptibly(microsToWait);
        return true;
      }
    
      private boolean canAcquire(long nowMicros, long timeoutMicros) {
        return queryEarliestAvailable(nowMicros) - timeoutMicros <= nowMicros;
      }
    
      /**
       * Reserves next ticket and returns the wait time that the caller must wait for.
       *
       * @return the required wait time, never negative
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

      @Override
      final double doGetRate() {
        return SECONDS.toMicros(1L) / stableIntervalMicros;
      }
    
      @Override
      final long queryEarliestAvailable(long nowMicros) {
        return nextFreeTicketMicros;
      }
    
      @Override
      final long reserveEarliestAvailable(int requiredPermits, long nowMicros) {
        resync(nowMicros);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

      @Override
      final double doGetRate() {
        return SECONDS.toMicros(1L) / stableIntervalMicros;
      }
    
      @Override
      final long queryEarliestAvailable(long nowMicros) {
        return nextFreeTicketMicros;
      }
    
      @Override
      final long reserveEarliestAvailable(int requiredPermits, long nowMicros) {
        resync(nowMicros);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
Back to top