You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeHealthIndicator.java
+124-4
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,14 @@
18
18
19
19
importjava.util.LinkedHashMap;
20
20
importjava.util.Map;
21
+
importjava.util.concurrent.CompletableFuture;
22
+
importjava.util.concurrent.ExecutionException;
23
+
importjava.util.concurrent.Executor;
24
+
importjava.util.concurrent.Future;
25
+
importjava.util.concurrent.TimeUnit;
26
+
importjava.util.concurrent.TimeoutException;
27
+
28
+
importorg.springframework.util.Assert;
21
29
22
30
/**
23
31
* {@link HealthIndicator} that returns health indications from all registered delegates.
@@ -33,6 +41,8 @@ public class CompositeHealthIndicator implements HealthIndicator {
33
41
34
42
privatefinalHealthAggregatoraggregator;
35
43
44
+
privatefinalHealthStrategystrategy;
45
+
36
46
/**
37
47
* Create a new {@link CompositeHealthIndicator} from the specified indicators.
38
48
* @param healthAggregator the health aggregator
@@ -50,8 +60,14 @@ public CompositeHealthIndicator(HealthAggregator healthAggregator, Map<String, H
50
60
* @param registry the registry of {@link HealthIndicator HealthIndicators}.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/CompositeHealthIndicatorTests.java
0 commit comments