Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for oldest (0.48 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/OldestConflictResolver.java

    /**
     * Resolves conflicting artifacts by always selecting the oldest declaration. Oldest is defined as the
     * declaration whose version is less according to <code>ArtifactVersion.compareTo</code>.
     *
     * @see ArtifactVersion#compareTo
     * @since 3.0
     */
    @Named("oldest")
    @Singleton
    @Deprecated
    public class OldestConflictResolver implements ConflictResolver {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

                // key3 should definitely exist (just created)
                assertNotNull(limitedManager.getLease(key3));
    
                // key1 should have been evicted (oldest)
                assertNull(limitedManager.getLease(key1));
    
                // key2 should still exist (not the oldest)
                assertNotNull(limitedManager.getLease(key2));
            } finally {
                limitedManager.shutdown();
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. internal/lru/lru.go

    		return true
    	}
    	return false
    }
    
    // RemoveOldest removes the oldest item from the cache.
    func (c *LRU[K, V]) RemoveOldest() (key K, value V, ok bool) {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if ent := c.evictList.Back(); ent != nil {
    		c.removeElement(ent)
    		return ent.Key, ent.Value, true
    	}
    	return
    }
    
    // GetOldest returns the oldest entry
    func (c *LRU[K, V]) GetOldest() (key K, value V, ok bool) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/OldestConflictResolverTest.java

    @Deprecated
    class OldestConflictResolverTest extends AbstractConflictResolverTest {
        // constructors -----------------------------------------------------------
    
        OldestConflictResolverTest() throws Exception {
            super("oldest");
        }
    
        // tests ------------------------------------------------------------------
    
        /**
         * Tests that <code>a:1.0</code> wins in the scenario:
         * <pre>
         * a:1.0
         * b:1.0 -&gt; a:2.0
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/LruHashMap.java

    package org.codelibs.core.collection;
    
    import java.util.HashMap;
    import java.util.LinkedHashMap;
    import java.util.Map;
    
    /**
     * {@link HashMap} with an upper limit on the number of entries. When a new entry is added, the oldest entry is discarded using LRU if the limit is exceeded.
     *
     * @author koichik
     * @param <K> the key type
     * @param <V> the value type
     */
    public class LruHashMap<K, V> extends LinkedHashMap<K, V> {
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        val toEvictIdleAtNs: Long
        when {
          // We had at least one OLD connection. Close the oldest one.
          earliestOldConnection != null -> {
            toEvict = earliestOldConnection
            toEvictIdleAtNs = earliestOldIdleAtNs
          }
    
          // We have too many EVICTABLE connections. Close the oldest one.
          evictableConnectionCount > maxIdleConnections -> {
            toEvict = earliestEvictableConnection
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 03 17:10:08 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            }
        }
    
        /**
         * Evict oldest leases based on LRU
         *
         * @param count number of leases to evict
         */
        private void evictOldestLeases(int count) {
            if (count <= 0 || leases.isEmpty()) {
                return;
            }
    
            // Find oldest leases by last access time
            leases.entrySet()
                    .stream()
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        assertThat(hpackReader!!.headerCount).isEqualTo(0)
        assertThat(hpackReader!!.getAndResetHeaderList()).isEqualTo(
          headerEntries("custom-key", "custom-header"),
        )
      }
    
      /** Oldest entries are evicted to support newer ones.  */
      @Test
      fun writerEviction() {
        val headerBlock =
          headerEntries(
            "custom-foo",
            "custom-header",
            "custom-bar",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * build</a>.)
         *
         * <p>Be careful when targeting an older SDK than you are building against (most commonly when
         * building for Android): Ensure that any object you pass implements the interface not just in
         * your current SDK version but also at the oldest version you support. For example, <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * build</a>.)
         *
         * <p>Be careful when targeting an older SDK than you are building against (most commonly when
         * building for Android): Ensure that any object you pass implements the interface not just in
         * your current SDK version but also at the oldest version you support. For example, <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
Back to top