- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 322 for permits (0.35 sec)
-
android/guava/src/com/google/common/util/concurrent/RateLimiter.java
* Law</a>). * * <p>A {@code RateLimiter} is defined primarily by the rate at which permits are issued. Absent * additional configuration, permits will be distributed at a fixed rate, defined in terms of * permits per second. Permits will be distributed smoothly, with the delay between individual * permits being adjusted to ensure that the configured rate is maintained. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 21.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/RateLimiter.java
} /** * Acquires permits from this {@link RateLimiter} if it can be acquired immediately without delay. * * <p>This method is equivalent to {@code tryAcquire(permits, 0, anyUnit)}. * * @param permits the number of permits to acquire * @return {@code true} if the permits were acquired, {@code false} otherwise * @throws IllegalArgumentException if the requested number of permits is negative or zero * @since 14.0
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 21.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java
* "permits / time", thus "1 / rate = time / permits". Thus, "1/rate" (time / permits) times * "permits" gives time, i.e., integrals on this function (which is what storedPermitsToWaitTime() * computes) correspond to minimum intervals between subsequent requests, for the specified number * of requested permits. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 19.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
* with the specified number of permits. * * @param stripes the minimum number of stripes (semaphores) required * @param permits the number of permits in each semaphore * @return a new {@code Striped<Semaphore>} */ public static Striped<Semaphore> semaphore(int stripes, int permits) { return custom(stripes, () -> new PaddedSemaphore(permits)); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 26 12:58:35 UTC 2024 - 20.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertTrue("Should acquire initial permit", rateLimiter.tryAcquire()); assertFalse("Should not acquire additional permit", rateLimiter.tryAcquire()); stopwatch.sleepMillis(5000); assertFalse( "Should not acquire additional permit even after sleeping", rateLimiter.tryAcquire()); } private long measureTotalTimeMillis(RateLimiter rateLimiter, int permits, Random random) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 21.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertTrue("Should acquire initial permit", rateLimiter.tryAcquire()); assertFalse("Should not acquire additional permit", rateLimiter.tryAcquire()); stopwatch.sleepMillis(5000); assertFalse( "Should not acquire additional permit even after sleeping", rateLimiter.tryAcquire()); } private long measureTotalTimeMillis(RateLimiter rateLimiter, int permits, Random random) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 21.8K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/net/http/67813.md
[Transport] and [Server] now have an HTTP2 field which permits
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Aug 29 17:38:46 UTC 2024 - 101 bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Uninterruptibles.java
* timeout, unit)} uninterruptibly. * * @since 28.0 (but only since 33.4.0 in the Android flavor) */ @J2ktIncompatible @GwtIncompatible // concurrency public static boolean tryAcquireUninterruptibly( Semaphore semaphore, int permits, Duration timeout) { return tryAcquireUninterruptibly(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 19.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
public static boolean tryAcquireUninterruptibly( Semaphore semaphore, int permits, Duration timeout) { return tryAcquireUninterruptibly( semaphore, permits, toNanosSaturated(timeout), TimeUnit.NANOSECONDS); } /** * Invokes {@code semaphore.}{@link Semaphore#tryAcquire(int, long, TimeUnit) tryAcquire(permits, * timeout, unit)} uninterruptibly. * * @since 18.0 */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 20.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/internal/ThrottledSink.kt
* */ package mockwebserver3.internal import okio.Buffer import okio.Sink /** * A sink that sleeps [periodDelayNanos] every [bytesPerPeriod] bytes. Unlike [okio.Throttler], * this permits any interval to be used. */ internal class ThrottledSink( private val delegate: Sink, private val bytesPerPeriod: Long, private val periodDelayNanos: Long, ) : Sink by delegate {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.5K bytes - Viewed (0)