Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for closeConnection (0.08 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java

            this.expectedContent.put(resourceName, expectedContent);
        }
    
        public String[] getSupportedProtocols() {
            return new String[] {"string"};
        }
    
        @Override
        public void closeConnection() throws ConnectionException {}
    
        @Override
        public void fillInputData(InputData inputData)
                throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt

        assertThat(pool.closeConnections(50L)).isEqualTo(100L)
        assertThat(pool.connectionCount()).isEqualTo(1)
        assertThat(c1.socket().isClosed).isFalse()
    
        // Running at time 60, the pool returns that nothing can be evicted until time 150.
        assertThat(pool.closeConnections(60L)).isEqualTo(90L)
        assertThat(pool.connectionCount()).isEqualTo(1)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:55:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

      private val cleanupQueue: TaskQueue = taskRunner.newQueue()
      private val cleanupTask =
        object : Task("$okHttpName ConnectionPool connection closer") {
          override fun runOnce(): Long = closeConnections(System.nanoTime())
        }
    
      /**
       * Holding the lock of the connection being added or removed when mutating this, and check its
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top