- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for thread (0.03 sec)
-
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
public class DeferredTest { @Test public void test_doneBeforeResolve() throws Exception { final Deferred<SuggestResponse> deferred = new Deferred<>(); Thread th = new Thread(() -> { try { Thread.sleep(1000); } catch (InterruptedException ignore) {} deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null)); }); th.start();Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Sat Mar 15 06:51:20 UTC 2025 - 4.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AccessTimeoutTarget.java
/** The thread being monitored. */ protected Thread runningThread; /** Flag indicating if the thread is still running. */ protected AtomicBoolean running = new AtomicBoolean(); /** * Constructs an AccessTimeoutTarget with the specified thread. * @param thread The thread to monitor. */ public AccessTimeoutTarget(final Thread thread) { runningThread = thread;Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 2.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CrawlingParameterUtil.java
* * @return the {@link CrawlerContext} for the current thread, or {@code null} if no context is set. */ public static CrawlerContext getCrawlerContext() { return ROBOT_CONTEXT_THREAD_LOCAL.get(); } /** * Sets the current {@link CrawlerContext} for the current thread. * If the provided {@code crawlerContext} is {@code null}, the context is removed from the thread-local storage.Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 6.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerContext.java
* <p> * The context includes information such as the session ID, active thread count, access count, crawler status, * URL filter, rule manager, interval controller, robots.txt URL set, sitemaps, number of threads, * maximum thread check count, maximum depth, and maximum access count. * </p> * * <p> * It also provides thread-local storage for sitemaps, allowing each thread to have its own set of sitemaps. * </p> */
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java
}); } for (Thread th : threads) { th.start(); } for (Thread th : threads) { th.join(); } assertEquals(num, count.get()); assertEquals(num, valueSet.size()); Set<String> valueSet2 = Collections.synchronizedSet(new HashSet<>()); threads = new Thread[threadNum];Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb1/SmbClientTest.java
SmbClient client = new SmbClient() { @Override protected ResponseData getResponseData(final String uri, final boolean includeContent) { try { Thread.sleep(2000); } catch (InterruptedException e) { throw new CrawlingAccessException(e); } return null; } };
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 2.3K bytes - Viewed (0) -
fess-crawler-lasta/src/main/resources/crawler.xml
<include path="crawler/log.xml"/> <include path="crawler/sitemaps.xml"/> <!-- Crawler --> <component name="crawler" class="org.codelibs.fess.crawler.Crawler" instance="prototype" > </component> <!-- Crawler Thread --> <component name="crawlerThread" class="org.codelibs.fess.crawler.CrawlerThread" instance="prototype" > </component> <!-- Entity -->
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Tue Nov 28 13:40:25 UTC 2017 - 1.7K bytes - Viewed (0) -
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) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XPathAPI.java
* Node singleNode = xPathAPI.selectSingleNode(contextNode, "//example[1]"); * XPathEvaluationResult<?> result = xPathAPI.eval(contextNode, "count(//example)"); * } * </pre> * * <p>Note: This class is not thread-safe. Each thread should create its own instance of XPathAPI.</p> * * @see javax.xml.xpath.XPath * @see javax.xml.xpath.XPathFactory * @see javax.xml.xpath.XPathExpressionException */ public class XPathAPI {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 4.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java
* <pre> * {@code * String escapedXml = XmlUtil.escapeXml("<tag>value</tag>"); * Map<String, Object> dataMap = XmlUtil.getDataMap(accessResultData); * } * </pre> * * <h2>Thread Safety:</h2> * <p> * This class is thread-safe as it does not maintain any state. * </p> * * <h2>Dependencies:</h2> * <ul> * <li>org.apache.logging.log4j.Logger</li> * <li>org.apache.logging.log4j.LogManager</li>
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 9.4K bytes - Viewed (0)