Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for queryEarliestAvailable (0.13 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.9K 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  3. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
Back to top