Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for requests (0.28 sec)

  1. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

            "R0.00", "R0.00", // Now comes the free request.
            "R0.50", // Now it's 0.5 seconds per request.
            "R0.50");
    
        limiter.setRate(Double.POSITIVE_INFINITY);
        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
        assertEvents("R0.50", "R0.00", "R0.00"); // we repay the last request (.5sec), then back to +oo
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

            "R0.00", "R0.00", // Now comes the free request.
            "R0.50", // Now it's 0.5 seconds per request.
            "R0.50");
    
        limiter.setRate(Double.POSITIVE_INFINITY);
        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
        assertEvents("R0.50", "R0.00", "R0.00"); // we repay the last request (.5sec), then back to +oo
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
                Map<Object, Object> result = Maps.newHashMap();
                // ignore request keys
                result.put(extraKey, extraValue);
                return result;
              }
            };
        LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

     *     manager.addListener(new Listener() {
     *         public void stopped() {}
     *         public void healthy() {
     *           // Services have been initialized and are healthy, start accepting requests...
     *         }
     *         public void failure(Service service) {
     *           // Something failed, at this point we could log it, notify a load balancer, or take
     *           // some other action.  For now we will just exit.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * @since 13.0
       */
      @CanIgnoreReturnValue
      public static int decode(String stringValue) {
        ParseRequest request = ParseRequest.fromString(stringValue);
    
        try {
          return parseUnsignedInt(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

     */
    public class MessageDigestHashFunctionTest extends TestCase {
      private static final ImmutableSet<String> INPUTS = ImmutableSet.of("", "Z", "foobar");
    
      // From "How Provider Implementations Are Requested and Supplied" from
      // http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html
      //  - Some providers may choose to also include alias names.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

       * FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      /*
       * TODO(cpovirk): or we could make HOLES_FORBIDDEN a feature. Or we could declare that
       * implementations are permitted to throw IAE if a hole is requested, and we could update
       * test*Hole to permit IAE. (But might this ignore genuine bugs?) But see the TODO above
       * testLower, which could make this all unnecessary
       */
      public static Method[] getHoleMethods() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ContiguousSet.java

       * {@linkplain Range#contains(Comparable) contained} within the range.
       *
       * <p>Note that this method will return ranges with unbounded endpoints if {@link BoundType#OPEN}
       * is requested for a domain minimum or maximum. For example, if {@code set} was created from the
       * range {@code [1..Integer.MAX_VALUE]} then {@code set.range(CLOSED, OPEN)} must return {@code
       * [1..∞)}.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteStreams.java

            // in.available() always returns 0 (the default).
            int skip = (int) Math.min(remaining, BUFFER_SIZE);
            if (buf == null) {
              // Allocate a buffer bounded by the maximum size that can be requested, for
              // example an array of BUFFER_SIZE is unnecessary when the value of remaining
              // is smaller.
              buf = new byte[skip];
            }
            if ((skipped = in.read(buf, 0, skip)) == -1) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/HttpHeaders.java

      /** The HTTP {@code Access-Control-Request-Headers} header field name. */
      public static final String ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers";
      /** The HTTP {@code Access-Control-Request-Method} header field name. */
      public static final String ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method";
      /** The HTTP {@code Authorization} header field name. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
Back to top