Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for recordLoadSuccess (0.05 sec)

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

        assertThat(stats.evictionCount()).isEqualTo(27);
      }
    
      public void testSimpleStatsOverflow() {
        StatsCounter counter = new SimpleStatsCounter();
        counter.recordLoadSuccess(Long.MAX_VALUE);
        counter.recordLoadSuccess(1);
        CacheStats stats = counter.snapshot();
        assertThat(stats.totalLoadTime()).isEqualTo(Long.MAX_VALUE);
      }
    
      public void testSimpleStatsIncrementBy() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        }
    
        if (calculatedValue == null) {
          String message = loader + " returned null for key " + key + ".";
          throw new CacheLoader.InvalidCacheLoadException(message);
        }
        statsCounter.recordLoadSuccess(ticker.read() - startTime);
        return calculatedValue;
      }
    
      private V getIfPresent(Object key) {
        checkNotNull(key);
        Timestamped<V> value = cachingHashMap.get(key);
    
        if (value == null) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheBuilder.java

                @Override
                public void recordMisses(int count) {}
    
                @SuppressWarnings("GoodTime") // b/122668874
                @Override
                public void recordLoadSuccess(long loadTime) {}
    
                @SuppressWarnings("GoodTime") // b/122668874
                @Override
                public void recordLoadException(long loadTime) {}
    
                @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 51.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/CacheBuilder.java

                @Override
                public void recordMisses(int count) {}
    
                @SuppressWarnings("GoodTime") // b/122668874
                @Override
                public void recordLoadSuccess(long loadTime) {}
    
                @SuppressWarnings("GoodTime") // b/122668874
                @Override
                public void recordLoadException(long loadTime) {}
    
                @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 51.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

            value = getUninterruptibly(newValue);
            if (value == null) {
              throw new InvalidCacheLoadException("CacheLoader returned null for key " + key + ".");
            }
            statsCounter.recordLoadSuccess(loadingValueReference.elapsedNanos());
            storeLoadedValue(key, hash, loadingValueReference, value);
            return value;
          } finally {
            if (value == null) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 19:35:11 UTC 2025
    - 148.9K bytes
    - Viewed (0)
Back to top