Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 80 for executorService (0.21 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

            .newClientBuilder()
            .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor()))
            .build()
      }
    
      private fun newVirtualThreadPerTaskExecutor(): ExecutorService =
        Executors::class.java.getMethod("newVirtualThreadPerTaskExecutor").invoke(null) as ExecutorService
    
      @Test
      fun testRequest() {
        server.enqueue(MockResponse())
    
        val request = Request(server.url("/"))
    
        client.newCall(request).execute().use {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

      @RegisterExtension
      var platform = PlatformRule()
    
      private lateinit var executorService: ExecutorService
    
      private var serverSocket: ServerSocket? = null
    
      @BeforeEach fun setUp() {
        executorService = Executors.newCachedThreadPool(threadFactory("HandshakeCertificatesTest"))
      }
    
      @AfterEach fun tearDown() {
        executorService.shutdown()
        serverSocket?.closeQuietly()
      }
    
      @Test fun clientAndServer() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

            assertEquals("http://example.com/", HcHttpClient.constructRedirectLocation("http://example.com/path/", "../"));
        }
    
        // public void test_doGet_mt() throws Exception {
        // ExecutorService executorService = Executors.newFixedThreadPool(1);
        //
        // // HttpClient Parameters
        // Map<String, Object> paramMap = new HashMap<String, Object>();
        // httpClient.setInitParameterMap(paramMap);
        //
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Sep 06 04:15:37 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

         * test the forwarded methods
         */
      }
    
      @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock.
      public void testListeningDecorator_noWrapExecuteTask() {
        ExecutorService delegate = mock(ExecutorService.class);
        ListeningExecutorService service = listeningDecorator(delegate);
        Runnable task =
            new Runnable() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 26.5K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt

       */
      @get:Synchronized
      @set:Synchronized
      var idleCallback: Runnable? = null
    
      private var executorServiceOrNull: ExecutorService? = null
    
      @get:JvmName("executorService")
      @get:Synchronized
      val executorService: ExecutorService
        get() {
          if (executorServiceOrNull == null) {
            executorServiceOrNull =
              ThreadPoolExecutor(
                0,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 14:16:22 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

      }
    
      @AfterEach
      fun checkForPinning() {
        assertThat(capturedOut.toString()).isEmpty()
      }
    
      private fun newVirtualThreadPerTaskExecutor(): ExecutorService =
        Executors::class.java.getMethod("newVirtualThreadPerTaskExecutor").invoke(null) as ExecutorService
    
      @Test
      fun testHttpsRequest() {
        MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient ->
          mockServerClient
            .`when`(
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.7K bytes
    - Click Count (1)
  7. src/main/java/org/codelibs/core/timer/TimeoutManager.java

                try {
                    executorService.shutdown();
                    executorService.awaitTermination(60, TimeUnit.SECONDS);
                } catch (final InterruptedException e) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Interrupted.", e);
                    }
                } finally {
                    executorService.shutdownNow();
                }
            }
        }
    
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  8. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

      @GwtIncompatible // concurrency
      private void runConcurrentTest(int numberOfThreads, Callable<@Nullable Void> callable)
          throws Exception {
        ExecutorService executorService = newFixedThreadPool(numberOfThreads);
        CountDownLatch startLatch = new CountDownLatch(numberOfThreads);
        CountDownLatch doneLatch = new CountDownLatch(numberOfThreads);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

            int count = 1;
            final ExecutorService executorService = Executors.newFixedThreadPool(options.numOfThreads);
            try {
                while (count != 0) {
                    count = ComponentUtil.getThumbnailManager().generate(executorService, options.cleanup);
                    totalCount += count;
                }
                executorService.shutdown();
                executorService.awaitTermination(60, TimeUnit.SECONDS);
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

            }
          };
    
      @BeforeExperiment
      void setUp() throws Exception {
        executorService =
            new ThreadPoolExecutor(
                NUM_THREADS,
                NUM_THREADS,
                Long.MAX_VALUE,
                SECONDS,
                new ArrayBlockingQueue<Runnable>(1000));
        executorService.prestartAllCoreThreads();
        AtomicInteger integer = new AtomicInteger();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top