Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 335 for milliseconds (1.41 sec)

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

        serverIpv6.enqueue(
          MockResponse(body = "hello from IPv6"),
        )
    
        client =
          client
            .newBuilder()
            .fastFallback(false)
            .callTimeout(1_000, TimeUnit.MILLISECONDS)
            .build()
        val call = client.newCall(Request(url))
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
          assertThat(expected).hasMessage("timeout")
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                t.setDaemon(true);
                return t;
            });
    
            cleanupScheduler.scheduleWithFixedDelay(this::cleanup, cleanupInterval.toMillis(), cleanupInterval.toMillis(),
                    TimeUnit.MILLISECONDS);
    
            log.info("Authentication rate limiter initialized: maxAccount={}, maxIp={}, maxGlobal={}/min", maxAttemptsPerAccount,
                    maxAttemptsPerIp, maxGlobalAttemptsPerMinute);
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

     */
    @ExtendWith(MockitoExtension.class)
    class BasicFileInformationTest {
    
        @Mock
        private BasicFileInformation mockBasicFileInfo;
    
        private FileBasicInfo fileBasicInfo;
    
        // Use Unix timestamps (milliseconds since 1970) for test values
        private static final long TEST_CREATE_TIME = System.currentTimeMillis() - 10000;
        private static final long TEST_LAST_ACCESS_TIME = System.currentTimeMillis() - 8000;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            return this.dialect;
        }
    
        /**
         * Set key rotation limits
         *
         * @param bytesLimit maximum bytes to encrypt before rotation (0 to disable)
         * @param timeMillis maximum time in milliseconds before rotation (0 to disable)
         */
        public void setKeyRotationLimits(long bytesLimit, long timeMillis) {
            if (bytesLimit > 0) {
                this.keyRotationBytesLimit = bytesLimit;
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbWatchHandleTest.java

                // Verify timeout occurs
                assertThrows(TimeoutException.class, () -> {
                    future.get(100, TimeUnit.MILLISECONDS);
                });
    
                // Cancel the future
                future.cancel(true);
            } finally {
                executor.shutdownNow();
            }
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (1)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

         * Test that crawling intervals for the same host work correctly.
         */
        public void test_delayBeforeProcessing() {
            // Number of concurrent tasks
            final int numTasks = 100;
            // Interval in milliseconds
            final Long waittime = 100L;
    
            CrawlingParameterUtil.setUrlQueue(new UrlQueueImpl());
            final UrlQueue q = CrawlingParameterUtil.getUrlQueue();
            for (int i = 0; i < numTasks; i++) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

        server.enqueue(MockResponse(body = "a"))
        server.enqueue(MockResponse(body = "b"))
        client =
          client
            .newBuilder()
            .connectionPool(ConnectionPool(5, 250, TimeUnit.MILLISECONDS))
            .build()
        val request = Request(server.url("/"))
        val response1 = client.newCall(request).execute()
        assertThat(response1.body.string()).isEqualTo("a")
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 12.2K bytes
    - Viewed (1)
  9. src/main/java/jcifs/smb1/smb1/SmbFile.java

        }
    
        /**
         * Set the create time of the file. The time is specified as milliseconds
         * from Jan 1, 1970 which is the same as that which is returned by the
         * {@code createTime()} method.
         *
         * This method does not apply to workgroups, servers, or shares.
         *
         * @param time the create time as milliseconds since Jan 1, 1970
         * @throws SmbException if an error occurs while setting the create time
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

    import static com.google.common.util.concurrent.SneakyThrows.sneakyThrow;
    import static java.util.concurrent.Executors.callable;
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top