Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for loadCount (0.04 sec)

  1. guava-tests/test/com/google/common/cache/CacheLoaderTest.java

        final AtomicInteger loadCount = new AtomicInteger();
        final AtomicInteger reloadCount = new AtomicInteger();
        final AtomicInteger loadAllCount = new AtomicInteger();
    
        CacheLoader<Object, Object> baseLoader =
            new CacheLoader<Object, Object>() {
              @Override
              public Object load(Object key) {
                loadCount.incrementAndGet();
                return new Object();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(0, stats.hitCount());
        assertThat(stats.hitRate()).isEqualTo(0.0);
        assertEquals(1, stats.missCount());
        assertThat(stats.missRate()).isEqualTo(1.0);
        assertEquals(1, stats.loadCount());
        long totalLoadTime = stats.totalLoadTime();
        assertTrue(totalLoadTime >= 0);
        assertTrue(stats.averageLoadPenalty() >= 0.0);
        assertEquals(0, stats.evictionCount());
    
        cache.getUnchecked(one);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(0, stats.hitCount());
        assertThat(stats.hitRate()).isEqualTo(0.0);
        assertEquals(1, stats.missCount());
        assertThat(stats.missRate()).isEqualTo(1.0);
        assertEquals(1, stats.loadCount());
        long totalLoadTime = stats.totalLoadTime();
        assertTrue(totalLoadTime >= 0);
        assertTrue(stats.averageLoadPenalty() >= 0.0);
        assertEquals(0, stats.evictionCount());
    
        cache.getUnchecked(one);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheStats.java

       * guaranteed not to throw an exception). If you require specific handling, we recommend
       * implementing your own stats collector.
       */
      public long loadCount() {
        return saturatedAdd(loadSuccessCount, loadExceptionCount);
      }
    
      /**
       * Returns the number of times {@link Cache} lookup methods have successfully loaded a new value.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheStats.java

       * guaranteed not to throw an exception). If you require specific handling, we recommend
       * implementing your own stats collector.
       */
      public long loadCount() {
        return saturatedAdd(loadSuccessCount, loadExceptionCount);
      }
    
      /**
       * Returns the number of times {@link Cache} lookup methods have successfully loaded a new value.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top