Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 179 for delay (0.15 sec)

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

        SMALL_DELAY_MS = SHORT_DELAY_MS * 5;
        MEDIUM_DELAY_MS = SHORT_DELAY_MS * 10;
        LONG_DELAY_MS = SHORT_DELAY_MS * 200;
      }
    
      /**
       * Returns a timeout in milliseconds to be used in tests that verify that operations block or time
       * out.
       */
      long timeoutMillis() {
        return SHORT_DELAY_MS / 4;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        assertTrue(tryAcquireUninterruptibly(semaphore, LONG_DELAY_MS, MILLISECONDS));
        assertTimeNotPassed(stopwatch, LONG_DELAY_MS);
      }
    
      public void testTryAcquireTimeoutNoInterruptNotExpired() {
        TimedSemaphore semaphore = TimedSemaphore.createWithDelay(20);
        semaphore.tryAcquireSuccessfully(LONG_DELAY_MS);
        assertNotInterrupted();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

            public String call() throws InterruptedException {
              MILLISECONDS.sleep(DELAY_MS);
              return GOOD_CALLABLE_RESULT;
            }
          };
      private static final Callable<String> BAD_CALLABLE =
          new Callable<String>() {
            @Override
            public String call() throws InterruptedException, SampleException {
              MILLISECONDS.sleep(DELAY_MS);
              throw new SampleException();
            }
          };
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      boolean called = false;
    
      private void assertSingleCallWithCorrectParameters(
          Runnable command, long initialDelay, long delay, TimeUnit unit) {
        assertFalse(called); // only called once.
        called = true;
        assertEquals(INITIAL_DELAY, initialDelay);
        assertEquals(DELAY, delay);
        assertEquals(UNIT, unit);
        assertEquals(testRunnable, command);
      }
    
      public void testFixedRateSchedule() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

         * A value object that represents an absolute delay until a task should be invoked.
         *
         * @author Luke Sandberg
         * @since 11.0
         */
        protected static final class Schedule {
    
          private final long delay;
          private final TimeUnit unit;
    
          /**
           * @param delay the time from now to delay execution
           * @param unit the time unit of the delay parameter
           */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

            public String call() throws InterruptedException {
              MILLISECONDS.sleep(DELAY_MS);
              return GOOD_CALLABLE_RESULT;
            }
          };
      private static final Callable<String> BAD_CALLABLE =
          new Callable<String>() {
            @Override
            public String call() throws InterruptedException, SampleException {
              MILLISECONDS.sleep(DELAY_MS);
              throw new SampleException();
            }
          };
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/TestLocking.java

                long delay;
    
                do {
                    delay = 2L;
    
                    synchronized (t) {
                        long expire = t.ltime + t.delay;
                        long ctime = System.currentTimeMillis();
    
                        if (expire > ctime)
                            delay = expire - ctime;
                    }
    
    if (delay > 2)
    System.out.println("delay=" + delay);
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        assertTrue(tryAcquireUninterruptibly(semaphore, LONG_DELAY_MS, MILLISECONDS));
        assertTimeNotPassed(stopwatch, LONG_DELAY_MS);
      }
    
      public void testTryAcquireTimeoutNoInterruptNotExpired() {
        TimedSemaphore semaphore = TimedSemaphore.createWithDelay(20);
        semaphore.tryAcquireSuccessfully(LONG_DELAY_MS);
        assertNotInterrupted();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 30.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        SMALL_DELAY_MS = SHORT_DELAY_MS * 5;
        MEDIUM_DELAY_MS = SHORT_DELAY_MS * 10;
        LONG_DELAY_MS = SHORT_DELAY_MS * 200;
      }
    
      /**
       * Returns a timeout in milliseconds to be used in tests that verify that operations block or time
       * out.
       */
      long timeoutMillis() {
        return SHORT_DELAY_MS / 4;
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

            while (!crawlerRunning) {
                ThreadUtil.sleepQuietly(crawlerWaitMillis);
            }
        }
    
        public void delayByRules() {
            final long delay = getDelay();
            if (delay > 0) {
                ThreadUtil.sleep(delay);
            }
        }
    
        protected long getDelay() {
            if (ruleList.isEmpty()) {
                return 0;
            }
            final Calendar cal = getCurrentCal();
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.8K bytes
    - Viewed (0)
Back to top