- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for countDown (0.03 sec)
-
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
}); th.start(); final CountDownLatch latch = new CountDownLatch(1); deferred.promise().then(response -> latch.countDown()); assertTrue(latch.await(10, TimeUnit.SECONDS)); } @Test public void test_doneAfterResolve() throws Exception { final Deferred<SuggestResponse> deferred = new Deferred<>();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/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java
Thread.currentThread().interrupt(); } finally { endLatch.countDown(); } } }); } startLatch.countDown(); endLatch.await(10, TimeUnit.SECONDS); executor.shutdown();
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 25.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java
} catch (Exception e) { e.printStackTrace(); } finally { endLatch.countDown(); } } }).start(); } startLatch.countDown(); endLatch.await(); // Verify all rules were added (can't check exact count due to thread-safe implementation)
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 23.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/AbstractTransformerTest.java
} catch (Exception e) { errorCount.incrementAndGet(); } finally { endLatch.countDown(); } } }); } startLatch.countDown(); endLatch.await(10, TimeUnit.SECONDS); executor.shutdown(); assertEquals(0, errorCount.get());
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java
if (executeCallbacks.size() > 0) { try { executeCallbacks.stream().forEach(callback -> callback.accept(response)); } catch (final Exception ignore) {} } latch.countDown(); } /** * Rejects the deferred computation with the given throwable. * @param t The throwable. */ public void reject(final Throwable t) {
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Fri Jul 04 14:00:23 UTC 2025 - 7.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java
errorCount.incrementAndGet(); } finally { endLatch.countDown(); } } }).start(); } startLatch.countDown(); endLatch.await(); assertEquals(0, errorCount.get()); assertEquals("concurrentRule", testRule.getRuleId());
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 21.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/TransformerTest.java
} catch (Exception e) { e.printStackTrace(); } finally { endLatch.countDown(); } } }); } startLatch.countDown(); boolean completed = endLatch.await(30, TimeUnit.SECONDS); assertTrue("Test should complete within timeout", completed);
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 28K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterTest.java
numObInputDoc.set(response.getNumberOfInputDocs()); latch.countDown(); }).error(t -> { t.printStackTrace(); latch.countDown(); fail(); }); latch.await(); assertEquals(num, numObInputDoc.get());
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 37.2K bytes - Viewed (0)