Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for InterruptedException (0.11 sec)

  1. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       * timeoutMillis()}.
       */
      void assertThreadStaysAlive(Thread thread) throws InterruptedException {
        assertThreadStaysAlive(thread, timeoutMillis());
      }
    
      /** Checks that thread does not terminate within the given millisecond delay. */
      void assertThreadStaysAlive(Thread thread, long millis) throws InterruptedException {
        // No need to optimize the failing case via Thread.join.
        delay(millis);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java

                    } catch (InterruptedException e) {
                        throw new CrawlingAccessException(e);
                    }
                    return null;
                }
            };
            client.setAccessTimeout(1);
            try {
                client.doHead("smb://localhost/test.txt");
                fail();
            } catch (CrawlingAccessException e) {
                assertTrue(e.getCause() instanceof InterruptedException);
            }
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

                @Override
                protected ResponseData processHttpMethod(final String url, final HttpUriRequest httpRequest) {
                    try {
                        Thread.sleep(10000);
                    } catch (InterruptedException e) {
                        throw new CrawlingAccessException(e);
                    }
                    return null;
                }
            };
            client.setAccessTimeout(1);
            try {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

            throws InterruptedException {
          lastMethodCalled = "invokeAll";
          assertTaskWrapped(tasks);
          return inline.invokeAll(tasks);
        }
    
        @Override
        public <T> List<Future<T>> invokeAll(
            Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
            throws InterruptedException {
          assertTaskWrapped(tasks);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

        protected OldAbstractFuture() {}
    
        /*
         * Improve the documentation of when InterruptedException is thrown. Our
         * behavior matches the JDK's, but the JDK's documentation is misleading.
         */
        /**
         * {@inheritDoc}
         *
         * <p>The default {@link AbstractFuture} implementation throws {@code InterruptedException} if
         * the current thread is interrupted before or during the call, even if the value is already
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/QueuesTest.java

       * be a SynchronousQueue.
       */
      private ExecutorService threadPool;
    
      @Override
      public void setUp() {
        threadPool = newCachedThreadPool();
      }
    
      @Override
      public void tearDown() throws InterruptedException {
        threadPool.shutdown();
        assertTrue("Some worker didn't finish in time", threadPool.awaitTermination(10, SECONDS));
      }
    
      private static <T> int drain(
          BlockingQueue<T> q,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      public static void awaitUninterruptibly(CountDownLatch latch) {
        boolean interrupted = false;
        try {
          while (true) {
            try {
              latch.await();
              return;
            } catch (InterruptedException e) {
              interrupted = true;
            }
          }
        } finally {
          if (interrupted) {
            Thread.currentThread().interrupt();
          }
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/ThreadUtil.java

                Thread.sleep(millis);
            } catch (final InterruptedException e) {
                throw new InterruptedRuntimeException(e);
            }
        }
    
        public static void sleepQuietly(final long millis) {
            if (millis < 1L) {
                return;
            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
                if (logger.isDebugEnabled()) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb1/SmbClientTest.java

                    } catch (InterruptedException e) {
                        throw new CrawlingAccessException(e);
                    }
                    return null;
                }
            };
            client.setAccessTimeout(1);
            try {
                client.doHead("smb1://localhost/test.txt");
                fail();
            } catch (CrawlingAccessException e) {
                assertTrue(e.getCause() instanceof InterruptedException);
            }
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/SimplexTransferListenerTest.java

    import org.junit.jupiter.api.Test;
    import org.mockito.Mockito;
    
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    class SimplexTransferListenerTest {
        @Test
        void cancellation() throws InterruptedException {
            TransferListener delegate = new TransferListener() {
                @Override
                public void transferInitiated(TransferEvent event) throws TransferCancelledException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top