Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ForkJoinPool (0.05 sec)

  1. src/main/java/org/codelibs/core/concurrent/CommonPoolUtil.java

    package org.codelibs.core.concurrent;
    
    import java.util.concurrent.ForkJoinPool;
    
    import org.codelibs.core.log.Logger;
    
    public class CommonPoolUtil {
        private static final Logger logger = Logger.getLogger(CommonPoolUtil.class);
    
        private CommonPoolUtil() {
            // nothing
        }
    
        public static void execute(final Runnable task) {
            ForkJoinPool.commonPool().execute(() -> {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

            assertEquals(result, crawlingInfoHelper.generateId(dataMap));
    
            final AtomicInteger counter = new AtomicInteger(0);
            final ForkJoinPool pool = new ForkJoinPool(10);
            for (int i = 0; i < 1000; i++) {
                pool.execute(() -> {
                    assertEquals(result, crawlingInfoHelper.generateId(dataMap));
                    counter.incrementAndGet();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top