@Override
  public void shutdownNow() {
    stub.shutdownNow();
  }
Cancels an execution of the given name.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
  CancelExecutionRequest request =
      CancelExecutionRequest.newBuilder()
          .setName(
              ExecutionName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[EXECUTION]")
                  .toString())
          .build();
  ApiFuture<Execution> future = executionsClient.cancelExecutionCallable().futureCall(request);
  // Do something.
  Execution response = future.get();
}
}</pre>
java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java