Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for startupDurations (0.13 sec)

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

        ServiceManager serviceManager = new ServiceManager(asList(a, b));
        serviceManager.startAsync().awaitHealthy();
        ImmutableMap<Service, Duration> startupTimes = serviceManager.startupDurations();
        assertThat(startupTimes).hasSize(2);
        assertThat(startupTimes.get(a)).isAtLeast(Duration.ofMillis(150));
        assertThat(startupTimes.get(b)).isAtLeast(Duration.ofMillis(353));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

      @SuppressWarnings("Java7ApiChecker")
      // If users use this when they shouldn't, we hope that NewApi will catch subsequent Duration calls
      @IgnoreJRERequirement
      public ImmutableMap<Service, Duration> startupDurations() {
        return ImmutableMap.copyOf(
            Maps.<Service, Long, Duration>transformValues(startupTimes(), Duration::ofMillis));
      }
    
      @Override
      public String toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/ServiceManager.java

       *     by startup time.
       * @since 31.0 (but only since 33.4.0 in the Android flavor)
       */
      @J2ObjCIncompatible
      public ImmutableMap<Service, Duration> startupDurations() {
        return ImmutableMap.copyOf(
            Maps.<Service, Long, Duration>transformValues(startupTimes(), Duration::ofMillis));
      }
    
      @Override
      public String toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top