Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for 2000 (0.01 sec)

  1. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

            assertEquals(2000, intervalControlHelper.getDelay());
    
            intervalControlHelper.ruleList.clear();
    
            intervalControlHelper.addIntervalRule("12:15", "12:15", "*", 3000);
            assertEquals(3000, intervalControlHelper.getDelay());
    
            intervalControlHelper.ruleList.clear();
    
            intervalControlHelper.addIntervalRule("12:15", "12:15", "3,5", 4000);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

        try {
          for (i in 1..2) {
            // Space out traffic to make it easier to demarcate.
            sendTestRequest(fbRequest)
            Thread.sleep(1000)
            sendTestRequest(twitterRequest)
            Thread.sleep(1000)
            sendTestRequest(googleRequest)
            Thread.sleep(2000)
          }
        } finally {
          client.connectionPool.evictAll()
          client.dispatcher.executorService.shutdownNow()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            indexUpdater.start();
    
            // Give the thread time to process exceptions
            Thread.sleep(2000);
    
            // Clean up the thread
            indexUpdater.setFinishCrawling(true);
            indexUpdater.interrupt();
            indexUpdater.join(2000);
    
            // Test passes if no exception is thrown and thread terminates properly
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

            thread.start();
            thread.join(1000);
    
            String output = thread.getOutput();
            String[] lines = output.split("\n");
    
            assertTrue("Buffer should be limited to 10 items", lines.length <= 10);
            assertTrue("Last lines should be kept", output.contains("line15"));
        }
    
        public void test_run_maxBufferSizeConstant() {
            assertEquals(1000, InputStreamThread.MAX_BUFFER_SIZE);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        }
      }
    
      /**
       * We only rebuild the journal when it will halve the size of the journal and eliminate at least
       * 2000 ops.
       */
      private fun journalRebuildRequired(): Boolean {
        val redundantOpCompactThreshold = 2000
        return redundantOpCount >= redundantOpCompactThreshold &&
          redundantOpCount >= lruEntries.size
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

        val request =
          Request
            .Builder()
            .url(server.url("/"))
            .post(sleepingRequestBody(250))
            .build()
        val call = client.newCall(request)
        call.timeout().timeout(2000, TimeUnit.MILLISECONDS)
        val response = call.execute()
        Thread.sleep(250)
        response.body.source().readUtf8()
        response.close()
        assertThat(call.isCanceled()).isFalse()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

        assertThat(recordedRequest.url.encodedQuery).isEqualTo(
          "ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ",
        )
    
        assertThat(cacheEvents()).containsExactly("CacheMiss")
    
        Thread.sleep(2000)
        server.enqueue(
          dnsResponse(
            "0000818000010003000000000567726170680866616365626f6f6b03636f6d0000010001c00c000500010" +
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            }
        }
    
        protected int getBoundaryLimitSize() {
            // one HTTP proxy tool already limits the size (e.g. 3450 bytes)
            // so specify this size for test
            return 2000; // you can override as you like it
        }
    
        protected void throwTooLongBoundarySizeException(final String contentType, final int boundarySize, final int limitSize) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(I18N, Files.toString(temp, UTF_16LE));
      }
    
      public void testWriteBytes() throws IOException {
        File temp = createTempFile();
        byte[] data = newPreFilledByteArray(2000);
        Files.write(data, temp);
        assertTrue(Arrays.equals(data, Files.toByteArray(temp)));
    
        assertThrows(NullPointerException.class, () -> Files.write(null, temp));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

          if (deltaSeconds == Long.MIN_VALUE) {
            expiresAt = Long.MIN_VALUE
          } else if (deltaSeconds != -1L) {
            val deltaMilliseconds =
              if (deltaSeconds <= Long.MAX_VALUE / 1000) {
                deltaSeconds * 1000
              } else {
                Long.MAX_VALUE
              }
            expiresAt = currentTimeMillis + deltaMilliseconds
            if (expiresAt < currentTimeMillis || expiresAt > MAX_DATE) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
Back to top