Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for connectionAcquired (0.13 sec)

  1. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

          .execute().close()
    
        assertThat(listener.recordedEventTypes()).containsExactly(
          "ConnectStart",
          "ConnectEnd",
          "ConnectionAcquired",
          "ConnectionReleased",
          "ConnectionAcquired",
          "ConnectionReleased",
        )
      }
    
      @Test
      @Throws(IOException::class)
      fun successfulEmptyH2CallEventSequence() {
        enableTls()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ConnectionListener.kt

       * Invoked when a connection is released as no longer required.
       */
      open fun connectionClosed(connection: Connection) {}
    
      /**
       * Invoked when a call is assigned a particular connection.
       */
      open fun connectionAcquired(
        connection: Connection,
        call: Call,
      ) {}
    
      /**
       * Invoked when a call no longer uses a connection.
       */
      open fun connectionReleased(
        connection: Connection,
        call: Call,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

        proxy: Proxy,
        protocol: Protocol?,
        ioe: IOException,
      ) {
        logWithTime("connectFailed: $protocol $ioe")
      }
    
      override fun connectionAcquired(
        call: Call,
        connection: Connection,
      ) {
        logWithTime("connectionAcquired: $connection")
      }
    
      override fun connectionReleased(
        call: Call,
        connection: Connection,
      ) {
        logWithTime("connectionReleased")
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/CallConnectionUser.kt

      override fun connectionConnectEnd(
        connection: Connection,
        route: Route,
      ) {
        poolConnectionListener.connectEnd(connection, route, call)
      }
    
      override fun connectionAcquired(connection: Connection) {
        eventListener.connectionAcquired(call, connection)
      }
    
      override fun acquireConnectionNoEvents(connection: RealConnection) {
        call.acquireConnectionNoEvents(connection)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

        delegate.connectFailed(call, inetSocketAddress, proxy, protocol, ioe)
      }
    
      override fun connectionAcquired(
        call: Call,
        connection: Connection,
      ) {
        logWithTime("connectionAcquired: $connection")
    
        delegate.connectionAcquired(call, connection)
      }
    
      override fun connectionReleased(
        call: Call,
        connection: Connection,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. docs/features/events.md

    0.117 secureConnectStart
    0.586 secureConnectEnd
    0.586 connectEnd
    0.587 connectionAcquired
    0.588 requestHeadersStart
    0.590 requestHeadersEnd
    0.591 responseHeadersStart
    0.675 responseHeadersEnd
    0.676 responseBodyStart
    0.679 responseBodyEnd
    0.679 connectionReleased
    0.680 callEnd
    REQUEST 2 (pooled connection)
    0.000 callStart
    0.001 connectionAcquired
    0.001 requestHeadersStart
    0.001 requestHeadersEnd
    0.002 responseHeadersStart
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        expectedEvents += "ConnectStart"
        if (https) {
          expectedEvents += "SecureConnectStart"
          expectedEvents += "SecureConnectEnd"
        }
        expectedEvents += "ConnectEnd"
        expectedEvents += "ConnectionAcquired"
        expectedEvents += "RequestHeadersStart"
        expectedEvents += "RequestHeadersEnd"
        expectedEvents += "RequestBodyStart"
        // ... but we can read the response even after writing the request fails.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt

      }
    
      data class ConnectionClosed(
        override val timestampNs: Long,
        override val connection: Connection,
      ) : ConnectionEvent()
    
      data class ConnectionAcquired(
        override val timestampNs: Long,
        override val connection: Connection,
        val call: Call,
      ) : ConnectionEvent()
    
      data class ConnectionReleased(
        override val timestampNs: Long,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

        protocol: Protocol?,
        ioe: IOException,
      ) = logEvent(ConnectFailed(System.nanoTime(), call, inetSocketAddress, proxy, protocol, ioe))
    
      override fun connectionAcquired(
        call: Call,
        connection: Connection,
      ) = logEvent(ConnectionAcquired(System.nanoTime(), call, connection))
    
      override fun connectionReleased(
        call: Call,
        connection: Connection,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

            Protocol protocol, IOException ioe) {
          printEvent("connectFailed");
        }
    
        @Override public void connectionAcquired(Call call, Connection connection) {
          printEvent("connectionAcquired");
        }
    
        @Override public void connectionReleased(Call call, Connection connection) {
          printEvent("connectionReleased");
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
Back to top