Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 123 for evicted (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          }
    
          else -> {
            toEvict = null
            toEvictIdleAtNs = -1L
          }
        }
    
        when {
          toEvict != null -> {
            // We've chosen a connection to evict. Confirm it's still okay to be evicted, then close it.
            toEvict.withLock {
              if (toEvict.calls.isNotEmpty()) return 0L // No longer idle.
              if (toEvict.idleAtNs != toEvictIdleAtNs) return 0L // No longer oldest.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/CacheBuilder.java

       *
       * <p>If {@code maximumWeight} is zero, elements will be evicted immediately after being loaded
       * into cache. This can be useful in testing, or to disable caching temporarily.
       *
       * <p>Note that weight is only used to determine whether the cache is over capacity; it has no
       * effect on selecting which entry should be evicted next.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  3. docs/features/connections.md

    Once the response has been received, the connection will be returned to the pool so it can be reused for a future request. Connections are evicted from the pool after a period of inactivity.
    
    ### [Fast Fallback](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/-builder/fast-fallback/)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Feb 21 03:33:59 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

     * application. The tuning parameters in this pool are subject to change in future OkHttp releases.
     * Currently this pool holds up to 5 idle connections which will be evicted after 5 minutes of
     * inactivity.
     */
    class ConnectionPool internal constructor(
      internal val delegate: RealConnectionPool,
    ) {
      internal constructor(
        maxIdleConnections: Int = 5,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 20:39:41 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        assertThat(removalListener.getCount()).isEqualTo(2);
    
        // caches 1, evicts nothing
        assertThat(cache.getUnchecked(1)).isEqualTo(1);
        assertThat(cache.asMap().keySet()).containsExactly(3, 1);
    
        CacheTesting.processPendingNotifications(cache);
        assertThat(removalListener.getCount()).isEqualTo(2);
    
        // caches 4, evicts 1 and 3
        assertThat(cache.getUnchecked(4)).isEqualTo(4);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheStats.java

     *             for loading to complete (whether successful or not) and then increment {@code
     *             missCount}.
     *       </ul>
     *   <li>When an entry is evicted from the cache, {@code evictionCount} is incremented.
     *   <li>No stats are modified when a cache entry is invalidated or manually removed.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheStats.java

     *             for loading to complete (whether successful or not) and then increment {@code
     *             missCount}.
     *       </ul>
     *   <li>When an entry is evicted from the cache, {@code evictionCount} is incremented.
     *   <li>No stats are modified when a cache entry is invalidated or manually removed.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/Cache.java

    /**
     * A semi-persistent mapping from keys to values. Cache entries are manually added using {@link
     * #get(Object, Callable)} or {@link #put(Object, Object)}, and are stored in the cache until either
     * evicted or manually invalidated. The common way to build instances is using {@link CacheBuilder}.
     *
     * <p>Implementations of this interface are expected to be thread-safe, and can be safely accessed
     * by multiple concurrent threads.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Aug 07 02:38:22 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/AbstractCache.java

        void recordLoadException(long loadTime);
    
        /**
         * Records the eviction of an entry from the cache. This should only been called when an entry
         * is evicted due to the cache's eviction strategy, and not as a result of manual {@linkplain
         * Cache#invalidate invalidations}.
         */
        void recordEviction();
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 9.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/AbstractCache.java

        void recordLoadException(long loadTime);
    
        /**
         * Records the eviction of an entry from the cache. This should only been called when an entry
         * is evicted due to the cache's eviction strategy, and not as a result of manual {@linkplain
         * Cache#invalidate invalidations}.
         */
        void recordEviction();
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 9.1K bytes
    - Viewed (0)
Back to top