Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for minutes (0.16 sec)

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

    import static com.google.common.util.concurrent.InterruptionUtil.repeatedlyInterruptTestThread;
    import static com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly;
    import static java.util.concurrent.TimeUnit.MINUTES;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.testing.TearDown;
    import com.google.common.testing.TearDownStack;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        CacheBuilderSpec spec = parse("expireAfterWrite=10m");
        assertEquals(TimeUnit.MINUTES, spec.writeExpirationTimeUnit);
        assertEquals(10L, spec.writeExpirationDuration);
        assertCacheBuilderEquivalence(
            CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.MINUTES), CacheBuilder.from(spec));
      }
    
      public void testParse_writeExpirationSeconds() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        CacheBuilderSpec spec = parse("expireAfterWrite=10m");
        assertEquals(TimeUnit.MINUTES, spec.writeExpirationTimeUnit);
        assertEquals(10L, spec.writeExpirationDuration);
        assertCacheBuilderEquivalence(
            CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.MINUTES), CacheBuilder.from(spec));
      }
    
      public void testParse_writeExpirationSeconds() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Stopwatch.java

        if (DAYS.convert(nanos, NANOSECONDS) > 0) {
          return DAYS;
        }
        if (HOURS.convert(nanos, NANOSECONDS) > 0) {
          return HOURS;
        }
        if (MINUTES.convert(nanos, NANOSECONDS) > 0) {
          return MINUTES;
        }
        if (SECONDS.convert(nanos, NANOSECONDS) > 0) {
          return SECONDS;
        }
        if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) {
          return MILLISECONDS;
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilderSpec.java

     * never be removed.
     *
     * <p>Durations are represented by an integer, followed by one of "d", "h", "m", or "s",
     * representing days, hours, minutes, or seconds respectively. (There is currently no syntax to
     * request expiration in milliseconds, microseconds, or nanoseconds.)
     *
     * <p>Whitespace before and after commas and equal signs is ignored. Keys may not be repeated; it is
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Stopwatch.java

        if (DAYS.convert(nanos, NANOSECONDS) > 0) {
          return DAYS;
        }
        if (HOURS.convert(nanos, NANOSECONDS) > 0) {
          return HOURS;
        }
        if (MINUTES.convert(nanos, NANOSECONDS) > 0) {
          return MINUTES;
        }
        if (SECONDS.convert(nanos, NANOSECONDS) > 0) {
          return SECONDS;
        }
        if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) {
          return MILLISECONDS;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Nov 15 21:38:09 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        Cache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .expireAfterAccess(1, TimeUnit.MINUTES)
                .removalListener(listener)
                .ticker(ticker)
                .build();
        cache.put(1, 1);
        ticker.advance(10, TimeUnit.MINUTES);
        cache.invalidateAll();
    
        assertThat(listener.poll().getCause()).isEqualTo(RemovalCause.EXPIRED);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

    import static com.google.common.util.concurrent.InterruptionUtil.repeatedlyInterruptTestThread;
    import static com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly;
    import static java.util.concurrent.TimeUnit.MINUTES;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.testing.TearDown;
    import com.google.common.testing.TearDownStack;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

      }
    
      // TODO(cpovirk): instead of skipping, use a smaller number of steps
      @GwtIncompatible // works but takes 5 minutes to run
      public void testPeekingIteratorBehavesLikeIteratorOnThreeElementIterable() {
        actsLikeIteratorHelper(Lists.newArrayList("A", "B", "C"));
      }
    
      @GwtIncompatible // works but takes 5 minutes to run
      public void testPeekingIteratorAcceptsNullElements() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

          try {
            locked.countDown();
            finishLatch.await(1, TimeUnit.MINUTES);
          } catch (InterruptedException e) {
            fail(e.toString());
          } finally {
            lock.unlock();
          }
        }
    
        void waitUntilHoldingLock() throws InterruptedException {
          locked.await(1, TimeUnit.MINUTES);
        }
    
        void releaseLockAndFinish() throws InterruptedException {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
Back to top