Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        assertThat(stats.loadExceptionCount()).isEqualTo(0);
        assertThat(stats.hitCount()).isEqualTo(0);
    
        Object key = new Object();
        assertThat(cache.get(key)).isSameInstanceAs(key);
        stats = cache.stats();
        assertThat(stats.missCount()).isEqualTo(1);
        assertThat(stats.loadSuccessCount()).isEqualTo(1);
        assertThat(stats.loadExceptionCount()).isEqualTo(0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertThat(stats.loadExceptionCount()).isEqualTo(0);
        assertThat(stats.hitCount()).isEqualTo(0);
    
        Object key = new Object();
        assertThat(cache.get(key)).isSameInstanceAs(key);
        stats = cache.stats();
        assertThat(stats.missCount()).isEqualTo(1);
        assertThat(stats.loadSuccessCount()).isEqualTo(1);
        assertThat(stats.loadExceptionCount()).isEqualTo(0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        }
    
        CacheStats stats = cache.stats();
        assertThat(stats.evictionCount()).isEqualTo(removalListener.size());
        assertThat(stats.loadSuccessCount()).isEqualTo(computeCount.get());
        assertThat(stats.loadExceptionCount()).isEqualTo(exceptionCount.get() + computeNullCount.get());
        // each computed value is still in the cache, or was passed to the removal listener
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top