Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for sleepQuietly (0.18 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: Wed Jun 12 12:50:12 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: Wed Jun 12 12:50:12 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: Wed Jun 12 15:17:51 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: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. 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: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. 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: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top