Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for loadExceptionCount (0.17 sec)

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

        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        Object key = new Object();
        assertSame(key, cache.get(key));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(1, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        key = new Object();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheManualTest.java

        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        Object one = new Object();
        Object two = new Object();
    
        assertNull(cache.getIfPresent(one));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

       * on calls to {@code getIfPresent}.
       */
      public long loadExceptionCount() {
        return loadExceptionCount;
      }
    
      /**
       * Returns the ratio of cache loading attempts which threw exceptions. This is defined as {@code
       * loadExceptionCount / (loadSuccessCount + loadExceptionCount)}, or {@code 0.0} when {@code
       * loadSuccessCount + loadExceptionCount == 0}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/CacheStats.java

       * on calls to {@code getIfPresent}.
       */
      public long loadExceptionCount() {
        return loadExceptionCount;
      }
    
      /**
       * Returns the ratio of cache loading attempts which threw exceptions. This is defined as {@code
       * loadExceptionCount / (loadSuccessCount + loadExceptionCount)}, or {@code 0.0} when {@code
       * loadSuccessCount + loadExceptionCount == 0}.
       *
    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. android/guava/src/com/google/common/cache/AbstractCache.java

          CacheStats otherStats = other.snapshot();
          hitCount.add(otherStats.hitCount());
          missCount.add(otherStats.missCount());
          loadSuccessCount.add(otherStats.loadSuccessCount());
          loadExceptionCount.add(otherStats.loadExceptionCount());
          totalLoadTime.add(otherStats.totalLoadTime());
          evictionCount.add(otherStats.evictionCount());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 9.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheStatsTest.java

        assertThat(stats.hitRate()).isEqualTo(1.0);
        assertEquals(0, stats.missCount());
        assertThat(stats.missRate()).isEqualTo(0.0);
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertThat(stats.loadExceptionRate()).isEqualTo(0.0);
        assertEquals(0, stats.loadCount());
        assertEquals(0, stats.totalLoadTime());
        assertThat(stats.averageLoadPenalty()).isEqualTo(0.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/AbstractCache.java

          CacheStats otherStats = other.snapshot();
          hitCount.add(otherStats.hitCount());
          missCount.add(otherStats.missCount());
          loadSuccessCount.add(otherStats.loadSuccessCount());
          loadExceptionCount.add(otherStats.loadExceptionCount());
          totalLoadTime.add(otherStats.totalLoadTime());
          evictionCount.add(otherStats.evictionCount());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 9.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertEquals(removalListener.size(), stats.evictionCount());
        assertEquals(computeCount.get(), stats.loadSuccessCount());
        assertEquals(exceptionCount.get() + computeNullCount.get(), stats.loadExceptionCount());
        // each computed value is still in the cache, or was passed to the removal listener
        assertEquals(computeCount.get(), cache.size() + removalListener.size());
      }
    
      @GwtIncompatible // NullPointerTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top