Skip to content

Commit a0f3fc9

Browse files
committed
javadoc
1 parent 1dbd368 commit a0f3fc9

File tree

1 file changed

+5
-0
lines changed
  • spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons

1 file changed

+5
-0
lines changed

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/PodReady.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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<>();

0 commit comments

Comments
 (0)