Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for sleepQuietly (0.06 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/ThreadUtil.java

            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
                throw new InterruptedRuntimeException(e);
            }
        }
    
        public static void sleepQuietly(final long millis) {
            if (millis < 1L) {
                return;
            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. 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++;
            }
        }
    
        public void stop() {
            running.set(false);
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

                    logger.warn("Invalid read interval: {}", value);
                }
            }
            return readInterval;
        }
    
        protected void sleep(final long interval) {
            ThreadUtil.sleepQuietly(interval);
        }
    
        protected abstract void storeData(DataConfig dataConfig, IndexUpdateCallback callback, DataStoreParams paramMap,
                Map<String, String> scriptMap, Map<String, Object> defaultDataMap);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/auth/chain/CommandChain.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: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

        protected long crawlerWaitMillis = 10000;
    
        protected List<IntervalRule> ruleList = new ArrayList<>();
    
        public void checkCrawlerStatus() {
            while (!crawlerRunning) {
                ThreadUtil.sleepQuietly(crawlerWaitMillis);
            }
        }
    
        public void delayByRules() {
            final long delay = getDelay();
            if (delay > 0) {
                ThreadUtil.sleep(delay);
            }
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top