From a5d6e604ebbb4c80def0768ddaa5b7c300300d56 Mon Sep 17 00:00:00 2001 From: Quinn Klassen Date: Wed, 14 Aug 2024 07:45:07 -0700 Subject: [PATCH] Fix isEveryHandlerFinished doc string (#2182) --- temporal-sdk/src/main/java/io/temporal/workflow/Workflow.java | 2 +- .../workflow/signalTests/SignalAllHandlersFinished.java | 2 +- .../temporal/workflow/updateTest/UpdateAllHandlersFinished.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/temporal-sdk/src/main/java/io/temporal/workflow/Workflow.java b/temporal-sdk/src/main/java/io/temporal/workflow/Workflow.java index 104a77cfb..e4ead58ea 100644 --- a/temporal-sdk/src/main/java/io/temporal/workflow/Workflow.java +++ b/temporal-sdk/src/main/java/io/temporal/workflow/Workflow.java @@ -1271,7 +1271,7 @@ public static void applyLocalActivityOptions( * interruption of in-progress handlers by workflow return: * *

-   *    Workflow.await(() -> Workflow.isAllHandlersFinished());
+   *    Workflow.await(() -> Workflow.isEveryHandlerFinished());
    *  
will eventually have search attributes as: * * @return true if all handlers are finished, false otherwise. diff --git a/temporal-sdk/src/test/java/io/temporal/workflow/signalTests/SignalAllHandlersFinished.java b/temporal-sdk/src/test/java/io/temporal/workflow/signalTests/SignalAllHandlersFinished.java index 59d4f823c..684d9fb9a 100644 --- a/temporal-sdk/src/test/java/io/temporal/workflow/signalTests/SignalAllHandlersFinished.java +++ b/temporal-sdk/src/test/java/io/temporal/workflow/signalTests/SignalAllHandlersFinished.java @@ -39,7 +39,7 @@ public class SignalAllHandlersFinished { SDKTestWorkflowRule.newBuilder().setWorkflowTypes(TestSignalWorkflowImpl.class).build(); @Test - public void isAllHandlersFinished() { + public void isEveryHandlerFinished() { String workflowId = UUID.randomUUID().toString(); WorkflowClient workflowClient = testWorkflowRule.getWorkflowClient(); WorkflowOptions options = diff --git a/temporal-sdk/src/test/java/io/temporal/workflow/updateTest/UpdateAllHandlersFinished.java b/temporal-sdk/src/test/java/io/temporal/workflow/updateTest/UpdateAllHandlersFinished.java index e0c1fc2be..f8515d9ee 100644 --- a/temporal-sdk/src/test/java/io/temporal/workflow/updateTest/UpdateAllHandlersFinished.java +++ b/temporal-sdk/src/test/java/io/temporal/workflow/updateTest/UpdateAllHandlersFinished.java @@ -42,7 +42,7 @@ public class UpdateAllHandlersFinished { SDKTestWorkflowRule.newBuilder().setWorkflowTypes(TestUpdateWorkflowImpl.class).build(); @Test - public void isAllHandlersFinished() throws ExecutionException, InterruptedException { + public void isEveryHandlerFinished() throws ExecutionException, InterruptedException { String workflowId = UUID.randomUUID().toString(); WorkflowClient workflowClient = testWorkflowRule.getWorkflowClient(); WorkflowOptions options =