Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for evict (0.01 sec)

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

        // evict 3, 4, 5
        getAll(cache, asList(10));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(6, 7, 8, 9, 0, 1, 2, 10);
    
        // re-order
        getAll(cache, asList(6, 7, 8));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(9, 0, 1, 2, 10, 6, 7, 8);
    
        // evict 9, 1, 2, 10
        getAll(cache, asList(15));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

            if (cleaned == 2) {
                assertNull(entry1);
                assertNull(leaseManager.getLease(key2));
            }
        }
    
        @Test
        @DisplayName("Should evict oldest leases when max limit reached")
        void testMaxLeaseEviction() throws InterruptedException {
            // Create a context with low max lease limit
            Configuration limitedConfig = mock(Configuration.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/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.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt

            }
    
            // if the new or replacement header is too big, drop all entries.
            if (delta > maxDynamicTableByteCount) {
              clearDynamicTable()
              return
            }
    
            // Evict headers to the required length.
            val bytesToRecover = dynamicTableByteCount + delta - maxDynamicTableByteCount
            val entriesEvicted = evictToRecoverBytes(bytesToRecover)
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      @Override
      public int size() {
        return size;
      }
    
      /**
       * Adds the given element to this queue. If this queue has a maximum size, after adding {@code
       * element} the queue will automatically evict its greatest element (according to its comparator),
       * which may be {@code element} itself.
       *
       * @return {@code true} always
       */
      @CanIgnoreReturnValue
      @Override
      public boolean add(E element) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 33.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            if (file != null) {
                fileCache.put(path, new WeakReference<>(file));
            }
        }
    
        /**
         * Evict oldest leases based on LRU
         *
         * @param count number of leases to evict
         */
        private void evictOldestLeases(int count) {
            if (count <= 0 || leases.isEmpty()) {
                return;
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

            .build()
        val request = Request(server.url("/"))
        val response1 = client.newCall(request).execute()
        assertThat(response1.body.string()).isEqualTo("a")
    
        // Give the thread pool a chance to evict.
        Thread.sleep(500)
        val response2 = client.newCall(request).execute()
        assertThat(response2.body.string()).isEqualTo("b")
        assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 12.2K bytes
    - Viewed (1)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

       * (unless they were already returned).
       *
       * The iterator supports [MutableIterator.remove]. Removing a URL from the iterator evicts the
       * corresponding response from the cache. Use this to evict selected responses.
       */
      @Throws(IOException::class)
      fun urls(): MutableIterator<String> {
        return object : MutableIterator<String> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                    }
                  });
        }
    
        threadPool.shutdown();
        threadPool.awaitTermination(300, SECONDS);
    
        // Since we're not doing any more cache operations, and the cache only expires/evicts when doing
        // other operations, the cache and the removal queue won't change from this point on.
    
        // Verify that each received removal notification was valid
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.2.md

    is now easier to integrate into custom networking environments by supporting
    TLS for secure communication and L7 http-based traffic routing.
         * Graceful Node Shutdown (aka drain) - The new “kubectl drain” command gracefully
    evicts pods from nodes in preparation for disruptive operations like kernel
    upgrades or maintenance.
         * Custom Metrics for Autoscaling (HorizontalPodAutoscaler API in the Autoscaling
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Fri Dec 04 06:36:19 UTC 2020
    - 41.4K bytes
    - Viewed (0)
Back to top