- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 15 for ConnectionListener (0.08 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectionListener.kt
call: Call, ) {} /** * Invoked when a connection is marked for no new exchanges. */ open fun noNewExchanges(connection: Connection) {} companion object { val NONE: ConnectionListener = object : ConnectionListener() {} }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri May 30 21:28:20 GMT 2025 - 2.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionPool.kt
taskRunner: TaskRunner = TaskRunner.INSTANCE, connectionListener: ConnectionListener = ConnectionListener.NONE, ) : this( RealConnectionPool( taskRunner = taskRunner, maxIdleConnections = maxIdleConnections, keepAliveDuration = keepAliveDuration, timeUnit = timeUnit, connectionListener = connectionListener, ), )Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 3.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/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,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 3.8K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
buildConnectionPool( connectionListener = connectionListener, taskRunner = taskRunner, ), ).dispatcher(Dispatcher(backend.executor)) .taskRunnerInternal(taskRunner) } else { OkHttpClient .Builder() .connectionPool(ConnectionPool(connectionListener = connectionListener)) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt
private val javaNetSocket: JavaNetSocket, private val handshake: Handshake?, private val protocol: Protocol, private val socket: BufferedSocket, private val pingIntervalMillis: Int, internal val connectionListener: ConnectionListener, ) : Http2Connection.Listener(), Connection, ExchangeCodec.Carrier, Lockable { private var http2Connection: Http2Connection? = null // These properties are guarded by `this`. /**
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 14.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
toClose.closeQuietly() connectionListener.connectionClosed(connection) } else if (noNewExchangesEvent) { connectionListener.noNewExchanges(connection) } } return null } fun put(connection: RealConnection) { connection.assertLockHeld() connections.add(connection) // connection.queueEvent { connectionListener.connectEnd(connection) } scheduleCloser()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 11.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
javaNetSocket = javaNetSocket!!, handshake = handshake, protocol = protocol!!, socket = socket, pingIntervalMillis = pingIntervalMillis, connectionListener = connectionPool.connectionListener, ) this.connection = connection connection.start() // Success. call.eventListener.connectEnd(call, route.socketAddress, route.proxy, protocol)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 19.3K bytes - Click Count (2) -
okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt
"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
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri May 30 21:28:20 GMT 2025 - 2.6K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
RealConnectionPool( taskRunner = taskRunner, maxIdleConnections = maxIdleConnections, keepAliveDuration = 100L, timeUnit = TimeUnit.NANOSECONDS, connectionListener = ConnectionListener.NONE, ) /** Returns an address that's without an SSL socket factory or hostname verifier. */ fun newAddress( uriHost: String = this.uriHost, uriPort: Int = this.uriPort,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 12:06:21 GMT 2026 - 6.6K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt
import java.util.Deque import java.util.concurrent.ConcurrentLinkedDeque import java.util.concurrent.TimeUnit import okhttp3.ConnectionEvent.NoNewExchanges import okhttp3.internal.connection.ConnectionListener import okhttp3.internal.connection.RealConnection import okio.IOException import org.junit.jupiter.api.Assertions internal open class RecordingConnectionListener( /**
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 5.8K bytes - Click Count (0)