Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ofMillis (0.07 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

      private val serverListener = WebSocketRecorder("server")
      private val random = Random(0)
      private var client =
        clientTestRule
          .newClientBuilder()
          .writeTimeout(Duration.ofMillis(500))
          .readTimeout(Duration.ofMillis(500))
          .addInterceptor(
            Interceptor { chain: Interceptor.Chain ->
              val response = chain.proceed(chain.request())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        CountingSupplier countingSupplier = new CountingSupplier();
    
        Supplier<Integer> memoizedSupplier =
            Suppliers.memoizeWithExpiration(countingSupplier, Duration.ofMillis(75));
    
        checkExpiration(countingSupplier, memoizedSupplier);
      }
    
      @SuppressWarnings("DoNotCall")
      public void testMemoizeWithExpiration_longTimeUnitNegative() throws InterruptedException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

        val request =
          Request
            .Builder()
            .url(server.url("/"))
            .build()
        val timeoutClient =
          client
            .newBuilder()
            .callTimeout(Duration.ofMillis(456))
            .build()
        val call = timeoutClient.newCall(request)
        assertThat(call.timeout().timeoutNanos())
          .isEqualTo(TimeUnit.MILLISECONDS.toNanos(456))
      }
    
      @Test
      fun timeoutWritingRequest() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

          MockResponse
            .Builder()
            .headersDelay(2, TimeUnit.SECONDS)
            .build(),
        )
        client =
          client
            .newBuilder()
            .readTimeout(Duration.ofMillis(250))
            .build()
        val call =
          client.newCall(
            Request
              .Builder()
              .url(server!!.url("/"))
              .build(),
          )
        assertFailsWith<IOException> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        ImmutableMap<Service, Duration> startupTimes = serviceManager.startupDurations();
        assertThat(startupTimes).hasSize(2);
        assertThat(startupTimes.get(a)).isAtLeast(Duration.ofMillis(150));
        assertThat(startupTimes.get(b)).isAtLeast(Duration.ofMillis(353));
      }
    
      public void testServiceStartupTimes_selfStartingServices() {
        // This tests to ensure that:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

            .Builder()
            .body("Result")
            .build(),
        )
        val proxiedClient =
          OkHttpClient
            .Builder()
            .proxy(server.proxyAddress)
            .readTimeout(Duration.ofMillis(100))
            .build()
        val request = Request.Builder().url("http://android.com/").build()
        proxiedClient.newCall(request).execute().use { response ->
          assertThat(response.body.string()).isEqualTo("Result")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        }
        if (isLongTimeUnitBased(method)) {
          arguments.add(timeout.millis);
          arguments.add(TimeUnit.MILLISECONDS);
        }
        if (isDurationBased(method)) {
          arguments.add(Duration.ofMillis(timeout.millis));
        }
        try {
          Object result;
          doingCallLatch.countDown();
          try {
            result = method.invoke(monitor, arguments.toArray());
          } finally {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

      @IgnoreJRERequirement
      public ImmutableMap<Service, Duration> startupDurations() {
        return ImmutableMap.copyOf(
            Maps.<Service, Long, Duration>transformValues(startupTimes(), Duration::ofMillis));
      }
    
      @Override
      public String toString() {
        return MoreObjects.toStringHelper(ServiceManager.class)
            .add("services", Collections2.filter(services, not(instanceOf(NoOpService.class))))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (1)
  9. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        ExecutorService executor = newFixedThreadPool(1);
        requestInterruptIn(500);
        executor.execute(new SleepTask(1000));
        executor.shutdown();
        assertTrue(awaitTerminationUninterruptibly(executor, Duration.ofMillis(LONG_DELAY_MS)));
        assertTrue(executor.isTerminated());
        assertInterrupted();
      }
    
      public void testTryAwaitTerminationUninterruptiblyDuration_failure() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                }
                ftpClient.setAutodetectUTF8(autodetectEncoding);
                ftpClient.setConnectTimeout(connectTimeout);
                ftpClient.setDataTimeout(Duration.ofMillis(dataTimeout));
                ftpClient.setControlEncoding(controlEncoding);
                ftpClient.setBufferSize(bufferSize);
                if (passiveNatWorkaround) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 39.5K bytes
    - Viewed (0)
Back to top