Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 81 for executorService (0.07 sec)

  1. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

                ThumbnailManager mockThumbnailManager = new ThumbnailManager() {
                    private int callCount = 0;
    
                    @Override
                    public int generate(ExecutorService executorService, boolean cleanup) {
                        // Return 0 to exit the loop
                        if (callCount++ == 0) {
                            return 1;
                        }
                        return 0;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

    import java.util.concurrent.Delayed;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.ScheduledFuture;
    import java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy;
    import java.util.concurrent.TimeUnit;
    
    /**
     * Factory methods for {@link ExecutorService} for testing.
     *
     * @author Chris Nokleberg
     * @since 14.0
     */
    @GwtIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

    import com.google.common.util.concurrent.ListenableFuture;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.Nullable;
    
    /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

    import com.google.common.util.concurrent.ListenableFuture;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.Nullable;
    
    /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

        ExecutorService delegate =
            new ThreadPoolExecutor(0, Integer.MAX_VALUE, 60, SECONDS, new SynchronousQueue<>()) {
              @Override
              public void close() {
                throw new AssertionError(
                    "ForwardingExecutorService should have used the default method"
                        + " ExecutorService.close() (which would forward to methods like shutdown() on"
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 18:45:52 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

            }
        }
    
        @Override
        @PreDestroy
        public void close() throws Exception {
            if (executorService != null) {
                try {
                    executorService.shutdown();
                    executorService.awaitTermination(60, TimeUnit.SECONDS);
                } catch (final InterruptedException e) {
                    if (logger.isDebugEnabled()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  7. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

      @RegisterExtension
      var platform = PlatformRule()
    
      private lateinit var executorService: ExecutorService
    
      private var serverSocket: ServerSocket? = null
    
      @BeforeEach fun setUp() {
        executorService = Executors.newCachedThreadPool(threadFactory("HandshakeCertificatesTest"))
      }
    
      @AfterEach fun tearDown() {
        executorService.shutdown()
        serverSocket?.closeQuietly()
      }
    
      @Test fun clientAndServer() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

          }
        }
      }
    
      /**
       * Invokes {@code executor.}{@link ExecutorService#awaitTermination(long, TimeUnit)
       * awaitTermination(long, TimeUnit)} uninterruptibly with no timeout.
       *
       * @since 30.0
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      public static void awaitTerminationUninterruptibly(ExecutorService executor) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

    import com.google.common.collect.Multiset;
    import com.google.common.testing.TestLogHandler;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutorService;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Tests for {@link ListenerCallQueue}. */
    @NullUnmarked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

    import com.google.common.collect.Multiset;
    import com.google.common.testing.TestLogHandler;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutorService;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Tests for {@link ListenerCallQueue}. */
    @NullUnmarked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top