Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ConnectionListener (0.36 sec)

  1. okhttp/src/main/kotlin/okhttp3/ConnectionListener.kt

      /**
       * Invoked when a connection is marked for no new exchanges.
       */
      open fun noNewExchanges(connection: Connection) {}
    
      @ExperimentalOkHttpApi
      companion object {
        val NONE: ConnectionListener = object : ConnectionListener() {}
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/CallConnectionUser.kt

        connection.connectionListener.connectionAcquired(connection, call)
      }
    
      override fun connectionConnectionReleased(connection: RealConnection) {
        connection.connectionListener.connectionReleased(connection, call)
      }
    
      override fun connectionConnectionClosed(connection: RealConnection) {
        connection.connectionListener.connectionClosed(connection)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/internal.kt

    internal fun OkHttpClient.Builder.taskRunnerInternal(taskRunner: TaskRunner) = this.taskRunner(taskRunner)
    
    internal fun buildConnectionPool(
      connectionListener: ConnectionListener,
      taskRunner: TaskRunner,
    ): ConnectionPool =
      ConnectionPool(
        connectionListener = connectionListener,
        taskRunner = taskRunner,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/internal/http2/Http2FlowControlConnectionListener.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import okhttp3.ConnectionListener
    import okhttp3.internal.http2.flowcontrol.WindowCounter
    
    /**
     * ConnectionListener that outputs CSV for flow control of client receiving streams.
     */
    class Http2FlowControlConnectionListener : ConnectionListener(), FlowControlListener {
      val start = System.currentTimeMillis()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

        keepAliveDuration: Long = 5,
        timeUnit: TimeUnit = TimeUnit.MINUTES,
        connectionListener: ConnectionListener = ConnectionListener.NONE,
      ) : this(
        taskRunner = TaskRunner.INSTANCE,
        maxIdleConnections = maxIdleConnections,
        keepAliveDuration = keepAliveDuration,
        timeUnit = timeUnit,
        connectionListener = connectionListener,
      )
    
      // Public API
      constructor(
        maxIdleConnections: Int,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

        return RealConnectionPool(
          taskRunner = taskRunner,
          maxIdleConnections = maxIdleConnections,
          keepAliveDuration = 100L,
          timeUnit = TimeUnit.NANOSECONDS,
          connectionListener = ConnectionListener.NONE,
          exchangeFinderFactory = { pool, address, user ->
            FastFallbackExchangeFinder(
              routePlanner ?: RealRoutePlanner(
                taskRunner = taskRunner,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt

    @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
    
    package okhttp3
    
    import java.io.IOException
    import okhttp3.internal.SuppressSignatureCheck
    
    /** Data classes that correspond to each of the methods of [ConnectionListener]. */
    @SuppressSignatureCheck
    sealed class ConnectionEvent {
      abstract val timestampNs: Long
      open val connection: Connection?
        get() = null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

      /**
       * An override to ignore the normal order that is enforced.
       * EventListeners added by Interceptors will not see all events.
       */
      private val enforceOrder: Boolean = true,
    ) : ConnectionListener() {
      val eventSequence: Deque<ConnectionEvent> = ConcurrentLinkedDeque()
    
      private val forbiddenLocks = mutableSetOf<Any>()
    
      /** The timestamp of the last taken event, used to measure elapsed time between events. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

      private val handshakeCertificates = localhost()
    
      open val fastFallback: Boolean get() = true
    
      private var client: OkHttpClient =
        clientTestRule.newClientBuilder()
          .connectionPool(ConnectionPool(connectionListener = listener))
          .fastFallback(fastFallback)
          .build()
    
      @BeforeEach
      fun setUp(server: MockWebServer?) {
        this.server = server
        platform.assumeNotOpenJSSE()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top