Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for timeoutMillis (0.07 seconds)

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

      void assertFutureTimesOut(Future<?> future) {
        assertFutureTimesOut(future, timeoutMillis());
      }
    
      /** Checks that future.get times out, with the given millisecond timeout. */
      void assertFutureTimesOut(Future<?> future, long timeoutMillis) {
        long startTime = System.nanoTime();
        try {
          future.get(timeoutMillis, MILLISECONDS);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 37.8K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/timer/TimeoutManager.java

        /**
         * Interrupts the thread and waits for it to terminate.
         *
         * @param timeoutMillis
         *            The time to wait (in milliseconds)
         * @return <code>true</code> if the thread has terminated
         * @throws InterruptedException
         *             If interrupted while waiting
         */
        public boolean stop(final long timeoutMillis) throws InterruptedException {
            final Thread t = this.thread;
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/util/SimpleCircuitBreaker.java

         * @param timeoutMillis timeout before attempting to close open circuit
         */
        public SimpleCircuitBreaker(String name, int failureThreshold, int successThreshold, long timeoutMillis) {
            this.name = name;
            this.failureThreshold = failureThreshold;
            this.successThreshold = successThreshold;
            this.timeoutMillis = timeoutMillis;
    
            if (failureThreshold < 1) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/timer/TimeoutTask.java

        private final TimeoutTarget timeoutTarget;
    
        private final long timeoutMillis;
    
        private final boolean permanent;
    
        private long startTime;
    
        private int status = ACTIVE;
    
        TimeoutTask(final TimeoutTarget timeoutTarget, final int timeout, final boolean permanent) {
            this.timeoutTarget = timeoutTarget;
            this.timeoutMillis = timeout * 1000L;
            this.permanent = permanent;
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * @author Justin T. Sampson
     */
    @NullUnmarked
    public final class TestThread<L> extends Thread implements TearDown {
    
      private static final long DUE_DILIGENCE_MILLIS = 100;
      private static final long TIMEOUT_MILLIS = 5000;
    
      private final L lockLikeObject;
    
      private final SynchronousQueue<Request> requestQueue = new SynchronousQueue<>();
      private final SynchronousQueue<Response> responseQueue = new SynchronousQueue<>();
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * @author Justin T. Sampson
     */
    @NullUnmarked
    public final class TestThread<L> extends Thread implements TearDown {
    
      private static final long DUE_DILIGENCE_MILLIS = 100;
      private static final long TIMEOUT_MILLIS = 5000;
    
      private final L lockLikeObject;
    
      private final SynchronousQueue<Request> requestQueue = new SynchronousQueue<>();
      private final SynchronousQueue<Response> responseQueue = new SynchronousQueue<>();
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 11.4K bytes
    - Click Count (0)
Back to Top