Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for shend (5.45 sec)

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

      /**
       * Creates a TimeLimiter instance using the given executor service to execute method calls.
       *
       * <p><b>Warning:</b> using a bounded executor may be counterproductive! If the thread pool fills
       * up, any time callers spend waiting for a thread may count toward their time limit, and in this
       * case the call may even time out before the target method is ever invoked.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 27 14:21:11 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     *
     * <pre>{@code
     * final RateLimiter rateLimiter = RateLimiter.create(5000.0); // rate = 5000 permits per second
     * void submitPacket(byte[] packet) {
     *   rateLimiter.acquire(packet.length);
     *   networkService.send(packet);
     * }
     * }</pre>
     *
     * <p>It is important to note that the number of permits requested <i>never</i> affects the
     * throttling of the request itself (an invocation to {@code acquire(1)} and an invocation to {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        private final String toString;
    
        protected Stimulus(String toString) {
          this.toString = toString;
        }
    
        /**
         * Send this stimulus to both iterators and return normally only if both produce the same
         * response.
         */
        abstract void executeAndCompare(ListIterator<E> reference, T target);
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       *       the integral of our function, between X permits and X-K permits, assuming we want to
       *       spend K saved permits.
       * </ol>
       *
       * <p>In summary, the time it takes to move to the left (spend K permits), is equal to the area of
       * the function of width == K.
       *
       * <p>Assuming we have saturated demand, the time to go from maxPermits to thresholdPermits is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        private final String toString;
    
        protected Stimulus(String toString) {
          this.toString = toString;
        }
    
        /**
         * Send this stimulus to both iterators and return normally only if both produce the same
         * response.
         */
        abstract void executeAndCompare(ListIterator<E> reference, T target);
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

              readCount.set(0);
            } finally {
              unlock();
            }
          }
        }
    
        void runUnlockedCleanup() {
          // locked cleanup may generate notifications we can send unlocked
          if (!isHeldByCurrentThread()) {
            map.processPendingNotifications();
          }
        }
      }
    
      static class LoadingValueReference<K, V> implements ValueReference<K, V> {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LocalCache.java

              readCount.set(0);
            } finally {
              unlock();
            }
          }
        }
    
        void runUnlockedCleanup() {
          // locked cleanup may generate notifications we can send unlocked
          if (!isHeldByCurrentThread()) {
            map.processPendingNotifications();
          }
        }
      }
    
      static class LoadingValueReference<K, V> implements ValueReference<K, V> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top