Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for sleepQuietly (0.16 sec)

  1. src/test/java/org/codelibs/core/lang/ThreadUtilTest.java

        @Test
        public void test_sleep() throws Exception {
            ThreadUtil.sleep(1L);
            assertTrue(true);
            ThreadUtil.sleepQuietly(1L);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void test_sleepQuietly() throws Exception {
            ThreadUtil.sleepQuietly(1L);
            assertTrue(true);
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/ThreadUtil.java

         * Any {@link InterruptedException} is caught and logged at debug level.
         *
         * @param millis
         *            the length of time to sleep in milliseconds
         */
        public static void sleepQuietly(final long millis) {
            if (millis < 1L) {
                return;
            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

            return readInterval;
        }
    
        /**
         * Sleep for the specified interval.
         * @param interval The interval.
         */
        protected void sleep(final long interval) {
            ThreadUtil.sleepQuietly(interval);
        }
    
        /**
         * Store the data.
         * @param dataConfig The data configuration.
         * @param callback The callback.
         * @param paramMap The parameters.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AccessTimeoutTarget.java

                if (logger.isDebugEnabled()) {
                    logger.debug("Interrupt {}", runningThread);
                }
                runningThread.interrupt();
                ThreadUtil.sleepQuietly(1000L);
                count++;
            }
        }
    
        /**
         * Stops the timeout target by setting the running flag to false.
         */
        public void stop() {
            if (logger.isDebugEnabled()) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

            /**
             * Runs the monitor thread, sleeping for the timeout duration and terminating the process if needed.
             */
            @Override
            public void run() {
                ThreadUtil.sleepQuietly(timeout);
    
                if (!finished) {
                    try {
                        process.destroy();
                        teminated = true;
                    } catch (final Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

                this.process = process;
                this.timeout = timeout;
            }
    
            @Override
            public void run() {
                ThreadUtil.sleepQuietly(timeout);
    
                if (!finished) {
                    try {
                        process.destroy();
                        teminated = true;
                    } catch (final Exception e) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

         * This method blocks until the crawler is running again.
         */
        public void checkCrawlerStatus() {
            while (!crawlerRunning) {
                ThreadUtil.sleepQuietly(crawlerWaitMillis);
            }
        }
    
        /**
         * Applies delay based on the configured interval rules.
         * This method calculates the appropriate delay for the current time
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top