- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 159 for incrementBy (0.04 seconds)
-
guava-tests/test/com/google/common/cache/AbstractCacheTest.java
totalLoadTime += i; } for (int i = 0; i < 41; i++) { counter2.recordMisses(1); } for (int i = 0; i < 43; i++) { counter2.recordEviction(); } counter1.incrementBy(counter2); assertThat(counter1.snapshot()).isEqualTo(new CacheStats(38, 60, 44, 54, totalLoadTime, 66)); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 6.4K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/AbstractCache.java
loadSuccessCount.increment(); totalLoadTime.add(loadTime); } @SuppressWarnings("GoodTime") // b/122668874 @Override public void recordLoadException(long loadTime) { loadExceptionCount.increment(); totalLoadTime.add(loadTime); } @Override public void recordEviction() { evictionCount.increment(); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 9.1K bytes - Click Count (0) -
guava/src/com/google/common/cache/AbstractCache.java
loadSuccessCount.increment(); totalLoadTime.add(loadTime); } @SuppressWarnings("GoodTime") // b/122668874 @Override public void recordLoadException(long loadTime) { loadExceptionCount.increment(); totalLoadTime.add(loadTime); } @Override public void recordEviction() { evictionCount.increment(); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 9.1K bytes - Click Count (0) -
guava/src/com/google/common/cache/LocalCache.java
} @Override public CacheStats stats() { SimpleStatsCounter aggregator = new SimpleStatsCounter(); aggregator.incrementBy(localCache.globalStatsCounter); for (Segment<K, V> segment : localCache.segments) { aggregator.incrementBy(segment.statsCounter); } return aggregator.snapshot(); } @Override public void cleanUp() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 11 19:35:11 GMT 2025 - 148.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/FakeTicker.java
checkArgument(autoIncrementStep >= 0, "May not auto-increment by a negative amount"); this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep); return this; } /** * Sets the increment applied to the ticker whenever it is queried. * * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when * queried. * * @since 28.0
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Apr 14 15:16:19 GMT 2025 - 3.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/FakeTicker.java
checkArgument(autoIncrementStep >= 0, "May not auto-increment by a negative amount"); this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep); return this; } /** * Sets the increment applied to the ticker whenever it is queried. * * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when * queried. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Apr 14 15:16:19 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
} @Test @DisplayName("TestLocking increments numComplete") void testNumCompleteIncrement() { TestLocking t = new TestLocking(); t.url = "smb://test/file.txt"; t.numIter = 0; // Set to 0 so run() exits immediately // Run the method t.run(); // Verify numComplete was incrementedCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
cmd/http-stats.go
apiStats map[string]int sync.RWMutex } // Inc increments the api stats counter. func (stats *HTTPAPIStats) Inc(api string) { if stats == nil { return } stats.Lock() defer stats.Unlock() if stats.apiStats == nil { stats.apiStats = make(map[string]int) } stats.apiStats[api]++ } // Dec increments the api stats counter. func (stats *HTTPAPIStats) Dec(api string) {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Sep 24 17:13:00 GMT 2024 - 11.4K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheStats.java
* This is usually incremented in conjunction with {@link #missCount}, though {@code missCount} is * also incremented when an exception is encountered during cache loading (see {@link * #loadExceptionCount}). Multiple concurrent misses for the same key will result in a single load * operation. This may be incremented not in conjunction with {@code missCount} if the load occursCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 12.6K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheStats.java
* This is usually incremented in conjunction with {@link #missCount}, though {@code missCount} is * also incremented when an exception is encountered during cache loading (see {@link * #loadExceptionCount}). Multiple concurrent misses for the same key will result in a single load * operation. This may be incremented not in conjunction with {@code missCount} if the load occursCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 12.6K bytes - Click Count (0)