File tree Expand file tree Collapse file tree
javav2/example_code/controltower/src/main/java/com/example/controltower/scenario Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -490,21 +490,6 @@ private CompletableFuture<String> fetchEnabledBaselineArn(String targetIdentifie
490490 return null ; // not yet available
491491 });
492492 }
493-
494- /**
495- * Polls a baseline operation until it reaches a terminal state.
496- */
497- private CompletableFuture <BaselineOperationStatus > pollBaselineOperationAsync (String operationId ) {
498- return getBaselineOperationAsync (operationId ).thenCompose (status -> {
499- if (status == BaselineOperationStatus .SUCCEEDED || status == BaselineOperationStatus .FAILED ) {
500- return CompletableFuture .completedFuture (status );
501- }
502- return CompletableFuture .supplyAsync (() -> null ,
503- CompletableFuture .delayedExecutor (30 , TimeUnit .SECONDS ))
504- .thenCompose (v -> pollBaselineOperationAsync (operationId ));
505- });
506- }
507-
508493 // snippet-end:[controltower.java2.enable_baseline.main]
509494
510495 // snippet-start:[controltower.java2.disable_baseline.main]
You can’t perform that action at this time.
0 commit comments