Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 80 for Dispatcher (0.05 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

        val a = client.newBuilder().build()
        assertThat(a.dispatcher).isNotNull()
        assertThat(a.connectionPool).isNotNull()
        assertThat(a.sslSocketFactory).isNotNull()
        assertThat(a.x509TrustManager).isNotNull()
    
        // Multiple clients share the instances.
        val b = client.newBuilder().build()
        assertThat(b.dispatcher).isSameAs(a.dispatcher)
        assertThat(b.connectionPool).isSameAs(a.connectionPool)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13.4K bytes
    - Viewed (1)
  2. guava-tests/test/com/google/common/eventbus/PackageSanityTests.java

        setDefault(Method.class, DummySubscriber.subscriberMethod());
        setDefault(SubscriberExceptionContext.class, dummySubscriber.toContext());
        setDefault(Dispatcher.class, Dispatcher.immediate());
      }
    
      private static class DummySubscriber {
    
        private final EventBus eventBus = new EventBus();
    
        @Subscribe
        public void handle(@Nullable Object unused) {}
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. docs/changelogs/upgrading_to_okhttp_4.md

     * **CipherSuite**: javaName
     * **ConnectionSpec**: cipherSuites, supportsTlsExtensions, tlsVersions
     * **Cookie**: domain, expiresAt, hostOnly, httpOnly, name, path, persistent, value
     * **Dispatcher**: executorService
     * **FormBody**: size
     * **Handshake**: cipherSuite, localCertificates, localPrincipal, peerCertificates, peerPrincipal,
       tlsVersion
     * **HandshakeCertificates**: keyManager, trustManager
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

    import mockwebserver3.SocketEffect.ShutdownConnection
    import okio.Buffer
    import okio.ByteString
    
    internal fun Dispatcher.wrap(): mockwebserver3.Dispatcher {
      if (this is QueueDispatcher) return this.delegate
    
      val delegate = this
      return object : mockwebserver3.Dispatcher() {
        override fun dispatch(request: mockwebserver3.RecordedRequest): mockwebserver3.MockResponse = delegate.dispatch(request.unwrap()).wrap()
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 4.1K bytes
    - Viewed (1)
  5. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

        val headers: Headers? = part.headers()
        val body: RequestBody = part.body()
      }
    
      @Test @Disabled
      fun okHttpClient() {
        val client = OkHttpClient()
        val dispatcher: Dispatcher = client.dispatcher()
        val proxy: Proxy? = client.proxy()
        val protocols: List<Protocol> = client.protocols()
        val connectionSpecs: List<ConnectionSpec> = client.connectionSpecs()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. docs/features/calls.md

    calls, you bring your own thread and are responsible for managing how many simultaneous requests you make. Too many simultaneous connections wastes resources; too few harms latency.
    
    For asynchronous calls, [`Dispatcher`](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-dispatcher/) implements policy for maximum simultaneous requests. You can set maximums per-webserver (default is 5), and overall (default is 64)....
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/LoomTest.kt

      private lateinit var client: OkHttpClient
    
      @BeforeEach
      fun setUp() {
        platform.assumeLoom()
    
        client =
          clientTestRule
            .newClientBuilder()
            .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor()))
            .build()
      }
    
      private fun newVirtualThreadPerTaskExecutor(): ExecutorService =
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/eventbus/PackageSanityTests.java

        setDefault(Method.class, DummySubscriber.subscriberMethod());
        setDefault(SubscriberExceptionContext.class, dummySubscriber.toContext());
        setDefault(Dispatcher.class, Dispatcher.immediate());
      }
    
      private static class DummySubscriber {
    
        private final EventBus eventBus = new EventBus();
    
        @Subscribe
        public void handle(@Nullable Object unused) {}
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

            .Builder()
            .connectionPool(
              buildConnectionPool(
                connectionListener = connectionListener,
                taskRunner = taskRunner,
              ),
            ).dispatcher(Dispatcher(backend.executor))
            .taskRunnerInternal(taskRunner)
        } else {
          OkHttpClient
            .Builder()
            .connectionPool(ConnectionPool(connectionListener = connectionListener))
        }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/QueueDispatcher.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.mockwebserver
    
    import mockwebserver3.QueueDispatcher
    
    class QueueDispatcher : Dispatcher() {
      internal val delegate = QueueDispatcher()
    
      @Throws(InterruptedException::class)
      override fun dispatch(request: RecordedRequest): MockResponse = throw UnsupportedOperationException("unexpected call")
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top