Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setUrlQueue (0.06 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

         */
        public void test_delayBeforeProcessing() {
            // 同時実行数
            final int numTasks = 100;
            // インターバル
            final Long waittime = 100L;
    
            CrawlingParameterUtil.setUrlQueue(new UrlQueueImpl());
            final UrlQueue q = CrawlingParameterUtil.getUrlQueue();
            for (int i = 0; i < numTasks; i++) {
                q.setUrl("http://example.com");
            }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CrawlingParameterUtil.java

        private CrawlingParameterUtil() {
        }
    
        public static UrlQueue<?> getUrlQueue() {
            return URL_QUEUE_THREAD_LOCAL.get();
        }
    
        public static void setUrlQueue(final UrlQueue<?> urlQueue) {
            if (urlQueue == null) {
                URL_QUEUE_THREAD_LOCAL.remove();
            } else {
                URL_QUEUE_THREAD_LOCAL.set(urlQueue);
            }
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top