File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ public final class PodReady {
3636 private final CachedSingleThreadScheduler podReadyScheduler = new CachedSingleThreadScheduler (
3737 TimeUnit .SECONDS .toMillis (10 ));
3838
39+ /**
40+ * The resulting CompletableFuture is completed when pod is ready according to the BooleanSupplier.
41+ * You are supposed to properly get rid of this task, but calling the other public method
42+ * getPodReadyTask and cancel it, this will take care to shutdown the executor it was running in.
43+ */
3944 public CompletableFuture <Void > podReady (BooleanSupplier isPodReady , String holderIdentity , String podNamespace ) {
4045
4146 CompletableFuture <Void > podReadyFuture = new CompletableFuture <>();
You can’t perform that action at this time.
0 commit comments