Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for getDelay (0.06 seconds)

  1. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

         * This method calculates the appropriate delay for the current time
         * and applies it by sleeping the current thread.
         */
        public void delayByRules() {
            final long delay = getDelay();
            if (delay > 0) {
                ThreadUtil.sleep(delay);
            }
        }
    
        /**
         * Calculates the delay in milliseconds based on current time and configured rules.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Nov 23 12:34:02 GMT 2025
    - 10K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java

          return new ImmediateScheduledFuture<>(immediateFailedFuture(t));
        }
    
        ImmediateScheduledFuture(ListenableFuture<V> delegate) {
          super(delegate);
        }
    
        @Override
        public long getDelay(TimeUnit unit) {
          return 0;
        }
    
        @Override
        public int compareTo(Delayed other) {
          return 0;
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

          implements ScheduledFuture<V> {
        @Override
        protected Future<V> delegate() {
          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
        public long getDelay(TimeUnit unit) {
          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
        public int compareTo(Delayed other) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

          implements ScheduledFuture<V> {
        @Override
        protected Future<V> delegate() {
          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
        public long getDelay(TimeUnit unit) {
          throw new UnsupportedOperationException("test should not care about this");
        }
    
        @Override
        public int compareTo(Delayed other) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

            assertEquals(2000, intervalControlHelper.getDelay());
    
            intervalControlHelper.ruleList.clear();
    
            intervalControlHelper.addIntervalRule("22:15", "2:45", "1", 3000);
            assertEquals(0, intervalControlHelper.getDelay());
    
            intervalControlHelper.addIntervalRule("22:15", "2:45", "2", 4000);
            assertEquals(4000, intervalControlHelper.getDelay());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

               * that's possible to detect in general.
               */
            }
            return cancelled;
          }
    
          @Override
          public long getDelay(TimeUnit unit) {
            return scheduledDelegate.getDelay(unit);
          }
    
          @Override
          public int compareTo(Delayed other) {
            return scheduledDelegate.compareTo(other);
          }
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        // TODO(diamondm) consider moving this into addPendingString so it's always in the output
        if (this instanceof ScheduledFuture) {
          return "remaining delay=[" + ((ScheduledFuture) this).getDelay(MILLISECONDS) + " ms]";
        }
        return null;
      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private void addPendingString(StringBuilder builder) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 14:39:00 GMT 2026
    - 43.6K bytes
    - Click Count (0)
Back to Top