Searched refs:sleepMillis (Results 1 - 1 of 1) sorted by relevance

/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DRateLimiterTest.java78 ticker.sleepMillis(200); // U0.20, we are ready for the next request...
87 ticker.sleepMillis(200); // U0.20, we are ready for the next request...
95 ticker.sleepMillis(1000); // max capacity reached
96 ticker.sleepMillis(1000); // this makes no difference
114 ticker.sleepMillis(500); // #2: to repay for the last acquire
115 ticker.sleepMillis(4000); // #3: becomes cold again
119 ticker.sleepMillis(500); // #5: to repay for the last acquire
120 ticker.sleepMillis(2000); // #6: didn't get cold! It would take another 2 seconds to go cold
139 ticker.sleepMillis(4500); // #2: back to cold state (warmup period + repay last acquire)
149 ticker.sleepMillis(425
347 void sleepMillis(int millis) { method in class:RateLimiterTest.FakeTicker
[all...]

Completed in 47 milliseconds