- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for doSetRate (0.07 sec)
-
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
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
*/ 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
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 21.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
events.clear(); } } @Override public String toString() { return events.toString(); } } @AndroidIncompatible // Mockito loses its ability to mock doGetRate as of Android 21 public void testMockingMockito() throws Exception { RateLimiter mock = Mockito.mock(RateLimiter.class); for (Method method : RateLimiter.class.getMethods()) {
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
events.clear(); } } @Override public String toString() { return events.toString(); } } @AndroidIncompatible // Mockito loses its ability to mock doGetRate as of Android 21 public void testMockingMockito() throws Exception { RateLimiter mock = Mockito.mock(RateLimiter.class); for (Method method : RateLimiter.class.getMethods()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 21.8K bytes - Viewed (0)