Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for commands (0.3 sec)

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

      public void testTimeout() throws Exception {
        // Create a service whose executor will never run its commands
        Service service =
            new TestService() {
              @Override
              protected Executor executor() {
                return new Executor() {
                  @Override
                  public void execute(Runnable command) {}
                };
              }
    
              @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

      private Throwable thrownByExecutionThread;
      private final Executor exceptionCatchingExecutor =
          new Executor() {
            @Override
            public void execute(Runnable command) {
              executionThread = new Thread(command);
              executionThread.setUncaughtExceptionHandler(
                  new UncaughtExceptionHandler() {
                    @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

      public void testTimeout() throws Exception {
        // Create a service whose executor will never run its commands
        Service service =
            new TestService() {
              @Override
              protected Executor executor() {
                return new Executor() {
                  @Override
                  public void execute(Runnable command) {}
                };
              }
    
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

      private Throwable thrownByExecutionThread;
      private final Executor exceptionCatchingExecutor =
          new Executor() {
            @Override
            public void execute(Runnable command) {
              executionThread = new Thread(command);
              executionThread.setUncaughtExceptionHandler(
                  new UncaughtExceptionHandler() {
                    @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

          new ScheduledThreadPoolExecutor(10) {
            @Override
            public ScheduledFuture<?> scheduleWithFixedDelay(
                Runnable command, long initialDelay, long delay, TimeUnit unit) {
              return future = super.scheduleWithFixedDelay(command, initialDelay, delay, unit);
            }
          };
    
      public void testServiceStartStop() throws Exception {
        NullService service = new NullService();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

          new ScheduledThreadPoolExecutor(10) {
            @Override
            public ScheduledFuture<?> scheduleWithFixedDelay(
                Runnable command, long initialDelay, long delay, TimeUnit unit) {
              return future = super.scheduleWithFixedDelay(command, initialDelay, delay, unit);
            }
          };
    
      public void testServiceStartStop() throws Exception {
        NullService service = new NullService();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

        }
    
        @Override
        public ListenableScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
          return NeverScheduledFuture.create();
        }
    
        @Override
        public ListenableScheduledFuture<?> scheduleAtFixedRate(
            Runnable command, long initialDelay, long period, TimeUnit unit) {
          return NeverScheduledFuture.create();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

        links = null;
        return result;
      }
    
      /*
       * For discussion of the safety of the following methods for operating on predecessors and
       * successors, see the comments near the end of CompactHashMap, noting that the methods here call
       * link(), which is defined at the end of this file.
       */
    
      private int getPredecessor(int entry) {
        return ((int) (link(entry) >>> 32)) - 1;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

        keyToRemove = map.keySet().iterator().next();
        if (supportsRemove) {
          int initialSize = map.size();
          map.get(keyToRemove);
          map.remove(keyToRemove);
          // This line doesn't hold - see the Javadoc comments above.
          // assertEquals(expectedValue, oldValue);
          assertFalse(map.containsKey(keyToRemove));
          assertEquals(initialSize - 1, map.size());
        } else {
          try {
            map.remove(keyToRemove);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactLinkedHashSet.java

        this.predecessor = null;
        this.successor = null;
        return result;
      }
    
      /*
       * For discussion of the safety of the following methods for operating on predecessors and
       * successors, see the comments near the end of CompactHashMap, noting that the methods here call
       * requirePredecessors() and requireSuccessors(), which are defined at the end of this file.
       */
    
      private int getPredecessor(int entry) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.7K bytes
    - Viewed (0)
Back to top