Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 653 for threads (0.03 sec)

  1. src/main/java/jcifs/netbios/NameServiceClientImpl.java

        }
    
        private static void interruptThreadSafely(final QueryThread thread) {
            try {
                thread.interrupt();
            } catch (final SecurityException e) {
                log.error("Security exception interrupting thread", e);
            }
        }
    
        private static void joinThread(final Thread thread) {
            try {
                thread.join();
            } catch (final InterruptedException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java

    import jakarta.annotation.Resource;
    
    /**
     * The {@code CrawlerThread} class represents a thread that executes the crawling process.
     * It is responsible for fetching URLs from the queue, accessing the content,
     * processing the response, and extracting child URLs.
     *
     * <p>
     * This class implements the {@link Runnable} interface, allowing it to be executed in a separate thread.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

            // Start a thread to set crawler running after a delay
            Thread thread = new Thread(() -> {
                try {
                    Thread.sleep(100);
                    helper.setCrawlerRunning(true);
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                }
            });
            thread.start();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PdfExtractor.java

         */
        public void setTimeout(final long timeout) {
            this.timeout = timeout;
        }
    
        /**
         * Sets whether the extraction thread should be a daemon thread.
         * @param isDaemonThread true to make it a daemon thread, false otherwise.
         */
        public void setDaemonThread(final boolean isDaemonThread) {
            this.isDaemonThread = isDaemonThread;
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/JobProcess.java

     * This class provides access to the underlying process and manages
     * the input stream thread for capturing process output.
     */
    public class JobProcess {
        /**
         * The underlying system process.
         */
        protected Process process;
    
        /**
         * The thread that handles reading from the process input stream.
         */
        protected InputStreamThread inputStreamThread;
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/SuggesterBuilder.java

        }
    
        /**
         * Sets the thread pool.
         * @param threadPool The thread pool.
         * @return This builder instance.
         */
        public SuggesterBuilder threadPool(final ExecutorService threadPool) {
            this.threadPool = threadPool;
            return this;
        }
    
        /**
         * Sets the thread pool size.
         * @param threadPoolSize The thread pool size.
         * @return This builder instance.
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        CountDownLatch doneSignal = new CountDownLatch(1);
    
        Thread thread =
            new Thread() {
              @Override
              public void run() {
                try {
                  cacheRef.get().getUnchecked(3);
                } finally {
                  doneSignal.countDown();
                }
              }
            };
        thread.setUncaughtExceptionHandler(
            new UncaughtExceptionHandler() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                w.write(payload, payload.length, out);
    
                // Give the writer thread time to process and set exception
                w.wait(100);
            }
    
            // Wait a bit more to ensure exception is captured
            Thread.sleep(100);
    
            // Act + Assert: checkException should throw the SmbException captured by the thread
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

      private fun sleep(delayMillis: Int) {
        try {
          Thread.sleep(delayMillis.toLong())
        } catch (e: InterruptedException) {
          Thread.currentThread().interrupt()
        }
      }
    
      private fun cancelLater(
        call: Call,
        delayMillis: Int,
      ): CountDownLatch {
        val latch = CountDownLatch(1)
        Thread {
          sleep(delayMillis)
          if (cancelMode == CANCEL) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

      }
    
      private fun sleep(delayMillis: Int) {
        try {
          Thread.sleep(delayMillis.toLong())
        } catch (e: InterruptedException) {
          Thread.currentThread().interrupt()
        }
      }
    
      private fun interruptLater(delayMillis: Int) {
        val toInterrupt = Thread.currentThread()
        val interruptingCow =
          Thread {
            sleep(delayMillis)
            toInterrupt.interrupt()
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top