Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for awaitHealthy (0.04 sec)

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

        Service a = new NoOpDelayedService(50);
        ServiceManager manager = new ServiceManager(asList(a));
        manager.startAsync();
        assertThrows(TimeoutException.class, () -> manager.awaitHealthy(1, MILLISECONDS));
        manager.awaitHealthy(5, SECONDS); // no exception thrown
    
        manager.stopAsync();
        assertThrows(TimeoutException.class, () -> manager.awaitStopped(1, MILLISECONDS));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

       * running} state.
       *
       * @throws IllegalStateException if the service manager reaches a state from which it cannot
       *     become {@linkplain #isHealthy() healthy}.
       */
      public void awaitHealthy() {
        state.awaitHealthy();
      }
    
      /**
       * Waits for the {@link ServiceManager} to become {@linkplain #isHealthy() healthy} for no more
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (1)
Back to top