com.amazonaws.services.cloudformation.AmazonCloudFormationAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cloudformation Show documentation
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.cloudformation;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.cloudformation.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
/**
* Client for accessing AWS CloudFormation asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*
* AWS CloudFormation
*
* AWS CloudFormation allows you to create and manage AWS infrastructure deployments predictably and repeatedly. You can
* use AWS CloudFormation to leverage AWS products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store,
* Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to build highly-reliable, highly
* scalable, cost-effective applications without creating or configuring the underlying AWS infrastructure.
*
*
* With AWS CloudFormation, you declare all of your resources and dependencies in a template file. The template defines
* a collection of resources as a single unit called a stack. AWS CloudFormation creates and deletes all member
* resources of the stack together and manages all dependencies between the resources for you.
*
*
* For more information about AWS CloudFormation, see the AWS
* CloudFormation Product Page.
*
*
* Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific
* AWS product, you can find the product's technical documentation at docs.aws.amazon.com.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonCloudFormationAsyncClient extends AmazonCloudFormationClient implements AmazonCloudFormationAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation. A credentials provider
* chain will be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AmazonCloudFormationAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation. A credentials provider
* chain will be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to AWS CloudFormation (ex: proxy
* settings, retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified AWS
* account credentials.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified AWS
* account credentials and executor service. Default client settings will be used.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified AWS
* account credentials, executor service, and client configuration options.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified AWS
* account credentials provider. Default client settings will be used.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the provided AWS
* account credentials provider and client configuration options.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified AWS
* account credentials provider and executor service. Default client settings will be used.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified AWS
* account credentials provider, executor service, and client configuration options.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonCloudFormationAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonCloudFormationAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonCloudFormationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration,
ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AmazonCloudFormationAsyncClientBuilder asyncBuilder() {
return AmazonCloudFormationAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS CloudFormation using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonCloudFormationAsyncClient(AwsAsyncClientParams asyncClientParams) {
super(asyncClientParams);
this.executorService = asyncClientParams.getExecutor();
}
/**
* Returns the executor service used by this client to execute async requests.
*
* @return The executor service used by this client to execute async requests.
*/
public ExecutorService getExecutorService() {
return executorService;
}
@Override
public java.util.concurrent.Future cancelUpdateStackAsync(CancelUpdateStackRequest request) {
return cancelUpdateStackAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelUpdateStackAsync(final CancelUpdateStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelUpdateStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelUpdateStackResult call() throws Exception {
CancelUpdateStackResult result = null;
try {
result = executeCancelUpdateStack(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future continueUpdateRollbackAsync(ContinueUpdateRollbackRequest request) {
return continueUpdateRollbackAsync(request, null);
}
@Override
public java.util.concurrent.Future continueUpdateRollbackAsync(final ContinueUpdateRollbackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ContinueUpdateRollbackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ContinueUpdateRollbackResult call() throws Exception {
ContinueUpdateRollbackResult result = null;
try {
result = executeContinueUpdateRollback(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createChangeSetAsync(CreateChangeSetRequest request) {
return createChangeSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createChangeSetAsync(final CreateChangeSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateChangeSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateChangeSetResult call() throws Exception {
CreateChangeSetResult result = null;
try {
result = executeCreateChangeSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createStackAsync(CreateStackRequest request) {
return createStackAsync(request, null);
}
@Override
public java.util.concurrent.Future createStackAsync(final CreateStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateStackResult call() throws Exception {
CreateStackResult result = null;
try {
result = executeCreateStack(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createStackInstancesAsync(CreateStackInstancesRequest request) {
return createStackInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future createStackInstancesAsync(final CreateStackInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateStackInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateStackInstancesResult call() throws Exception {
CreateStackInstancesResult result = null;
try {
result = executeCreateStackInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createStackSetAsync(CreateStackSetRequest request) {
return createStackSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createStackSetAsync(final CreateStackSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateStackSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateStackSetResult call() throws Exception {
CreateStackSetResult result = null;
try {
result = executeCreateStackSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteChangeSetAsync(DeleteChangeSetRequest request) {
return deleteChangeSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteChangeSetAsync(final DeleteChangeSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteChangeSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteChangeSetResult call() throws Exception {
DeleteChangeSetResult result = null;
try {
result = executeDeleteChangeSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteStackAsync(DeleteStackRequest request) {
return deleteStackAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStackAsync(final DeleteStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStackResult call() throws Exception {
DeleteStackResult result = null;
try {
result = executeDeleteStack(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteStackInstancesAsync(DeleteStackInstancesRequest request) {
return deleteStackInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStackInstancesAsync(final DeleteStackInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStackInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStackInstancesResult call() throws Exception {
DeleteStackInstancesResult result = null;
try {
result = executeDeleteStackInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteStackSetAsync(DeleteStackSetRequest request) {
return deleteStackSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteStackSetAsync(final DeleteStackSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteStackSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteStackSetResult call() throws Exception {
DeleteStackSetResult result = null;
try {
result = executeDeleteStackSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAccountLimitsAsync(DescribeAccountLimitsRequest request) {
return describeAccountLimitsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAccountLimitsAsync(final DescribeAccountLimitsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAccountLimitsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAccountLimitsResult call() throws Exception {
DescribeAccountLimitsResult result = null;
try {
result = executeDescribeAccountLimits(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeChangeSetAsync(DescribeChangeSetRequest request) {
return describeChangeSetAsync(request, null);
}
@Override
public java.util.concurrent.Future describeChangeSetAsync(final DescribeChangeSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeChangeSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeChangeSetResult call() throws Exception {
DescribeChangeSetResult result = null;
try {
result = executeDescribeChangeSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeStackEventsAsync(DescribeStackEventsRequest request) {
return describeStackEventsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackEventsAsync(final DescribeStackEventsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackEventsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackEventsResult call() throws Exception {
DescribeStackEventsResult result = null;
try {
result = executeDescribeStackEvents(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeStackInstanceAsync(DescribeStackInstanceRequest request) {
return describeStackInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackInstanceAsync(final DescribeStackInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackInstanceResult call() throws Exception {
DescribeStackInstanceResult result = null;
try {
result = executeDescribeStackInstance(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeStackResourceAsync(DescribeStackResourceRequest request) {
return describeStackResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackResourceAsync(final DescribeStackResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackResourceResult call() throws Exception {
DescribeStackResourceResult result = null;
try {
result = executeDescribeStackResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeStackResourcesAsync(DescribeStackResourcesRequest request) {
return describeStackResourcesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackResourcesAsync(final DescribeStackResourcesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackResourcesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackResourcesResult call() throws Exception {
DescribeStackResourcesResult result = null;
try {
result = executeDescribeStackResources(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeStackSetAsync(DescribeStackSetRequest request) {
return describeStackSetAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackSetAsync(final DescribeStackSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackSetResult call() throws Exception {
DescribeStackSetResult result = null;
try {
result = executeDescribeStackSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeStackSetOperationAsync(DescribeStackSetOperationRequest request) {
return describeStackSetOperationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStackSetOperationAsync(final DescribeStackSetOperationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStackSetOperationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStackSetOperationResult call() throws Exception {
DescribeStackSetOperationResult result = null;
try {
result = executeDescribeStackSetOperation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeStacksAsync(DescribeStacksRequest request) {
return describeStacksAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStacksAsync(final DescribeStacksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStacksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStacksResult call() throws Exception {
DescribeStacksResult result = null;
try {
result = executeDescribeStacks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeStacks operation.
*
* @see #describeStacksAsync(DescribeStacksRequest)
*/
@Override
public java.util.concurrent.Future describeStacksAsync() {
return describeStacksAsync(new DescribeStacksRequest());
}
/**
* Simplified method form for invoking the DescribeStacks operation with an AsyncHandler.
*
* @see #describeStacksAsync(DescribeStacksRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeStacksAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeStacksAsync(new DescribeStacksRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future estimateTemplateCostAsync(EstimateTemplateCostRequest request) {
return estimateTemplateCostAsync(request, null);
}
@Override
public java.util.concurrent.Future estimateTemplateCostAsync(final EstimateTemplateCostRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final EstimateTemplateCostRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public EstimateTemplateCostResult call() throws Exception {
EstimateTemplateCostResult result = null;
try {
result = executeEstimateTemplateCost(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the EstimateTemplateCost operation.
*
* @see #estimateTemplateCostAsync(EstimateTemplateCostRequest)
*/
@Override
public java.util.concurrent.Future estimateTemplateCostAsync() {
return estimateTemplateCostAsync(new EstimateTemplateCostRequest());
}
/**
* Simplified method form for invoking the EstimateTemplateCost operation with an AsyncHandler.
*
* @see #estimateTemplateCostAsync(EstimateTemplateCostRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future estimateTemplateCostAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return estimateTemplateCostAsync(new EstimateTemplateCostRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future executeChangeSetAsync(ExecuteChangeSetRequest request) {
return executeChangeSetAsync(request, null);
}
@Override
public java.util.concurrent.Future executeChangeSetAsync(final ExecuteChangeSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ExecuteChangeSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ExecuteChangeSetResult call() throws Exception {
ExecuteChangeSetResult result = null;
try {
result = executeExecuteChangeSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getStackPolicyAsync(GetStackPolicyRequest request) {
return getStackPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future getStackPolicyAsync(final GetStackPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetStackPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetStackPolicyResult call() throws Exception {
GetStackPolicyResult result = null;
try {
result = executeGetStackPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getTemplateAsync(GetTemplateRequest request) {
return getTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future getTemplateAsync(final GetTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTemplateResult call() throws Exception {
GetTemplateResult result = null;
try {
result = executeGetTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getTemplateSummaryAsync(GetTemplateSummaryRequest request) {
return getTemplateSummaryAsync(request, null);
}
@Override
public java.util.concurrent.Future getTemplateSummaryAsync(final GetTemplateSummaryRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTemplateSummaryRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTemplateSummaryResult call() throws Exception {
GetTemplateSummaryResult result = null;
try {
result = executeGetTemplateSummary(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the GetTemplateSummary operation.
*
* @see #getTemplateSummaryAsync(GetTemplateSummaryRequest)
*/
@Override
public java.util.concurrent.Future getTemplateSummaryAsync() {
return getTemplateSummaryAsync(new GetTemplateSummaryRequest());
}
/**
* Simplified method form for invoking the GetTemplateSummary operation with an AsyncHandler.
*
* @see #getTemplateSummaryAsync(GetTemplateSummaryRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future getTemplateSummaryAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return getTemplateSummaryAsync(new GetTemplateSummaryRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future listChangeSetsAsync(ListChangeSetsRequest request) {
return listChangeSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listChangeSetsAsync(final ListChangeSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListChangeSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListChangeSetsResult call() throws Exception {
ListChangeSetsResult result = null;
try {
result = executeListChangeSets(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listExportsAsync(ListExportsRequest request) {
return listExportsAsync(request, null);
}
@Override
public java.util.concurrent.Future listExportsAsync(final ListExportsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListExportsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListExportsResult call() throws Exception {
ListExportsResult result = null;
try {
result = executeListExports(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listImportsAsync(ListImportsRequest request) {
return listImportsAsync(request, null);
}
@Override
public java.util.concurrent.Future listImportsAsync(final ListImportsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListImportsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListImportsResult call() throws Exception {
ListImportsResult result = null;
try {
result = executeListImports(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listStackInstancesAsync(ListStackInstancesRequest request) {
return listStackInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackInstancesAsync(final ListStackInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackInstancesResult call() throws Exception {
ListStackInstancesResult result = null;
try {
result = executeListStackInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listStackResourcesAsync(ListStackResourcesRequest request) {
return listStackResourcesAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackResourcesAsync(final ListStackResourcesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackResourcesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackResourcesResult call() throws Exception {
ListStackResourcesResult result = null;
try {
result = executeListStackResources(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listStackSetOperationResultsAsync(ListStackSetOperationResultsRequest request) {
return listStackSetOperationResultsAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackSetOperationResultsAsync(final ListStackSetOperationResultsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackSetOperationResultsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackSetOperationResultsResult call() throws Exception {
ListStackSetOperationResultsResult result = null;
try {
result = executeListStackSetOperationResults(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listStackSetOperationsAsync(ListStackSetOperationsRequest request) {
return listStackSetOperationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackSetOperationsAsync(final ListStackSetOperationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackSetOperationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackSetOperationsResult call() throws Exception {
ListStackSetOperationsResult result = null;
try {
result = executeListStackSetOperations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listStackSetsAsync(ListStackSetsRequest request) {
return listStackSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listStackSetsAsync(final ListStackSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStackSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStackSetsResult call() throws Exception {
ListStackSetsResult result = null;
try {
result = executeListStackSets(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listStacksAsync(ListStacksRequest request) {
return listStacksAsync(request, null);
}
@Override
public java.util.concurrent.Future listStacksAsync(final ListStacksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListStacksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListStacksResult call() throws Exception {
ListStacksResult result = null;
try {
result = executeListStacks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the ListStacks operation.
*
* @see #listStacksAsync(ListStacksRequest)
*/
@Override
public java.util.concurrent.Future listStacksAsync() {
return listStacksAsync(new ListStacksRequest());
}
/**
* Simplified method form for invoking the ListStacks operation with an AsyncHandler.
*
* @see #listStacksAsync(ListStacksRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future listStacksAsync(com.amazonaws.handlers.AsyncHandler asyncHandler) {
return listStacksAsync(new ListStacksRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future setStackPolicyAsync(SetStackPolicyRequest request) {
return setStackPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future setStackPolicyAsync(final SetStackPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final SetStackPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public SetStackPolicyResult call() throws Exception {
SetStackPolicyResult result = null;
try {
result = executeSetStackPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future signalResourceAsync(SignalResourceRequest request) {
return signalResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future signalResourceAsync(final SignalResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final SignalResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public SignalResourceResult call() throws Exception {
SignalResourceResult result = null;
try {
result = executeSignalResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future stopStackSetOperationAsync(StopStackSetOperationRequest request) {
return stopStackSetOperationAsync(request, null);
}
@Override
public java.util.concurrent.Future stopStackSetOperationAsync(final StopStackSetOperationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final StopStackSetOperationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public StopStackSetOperationResult call() throws Exception {
StopStackSetOperationResult result = null;
try {
result = executeStopStackSetOperation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateStackAsync(UpdateStackRequest request) {
return updateStackAsync(request, null);
}
@Override
public java.util.concurrent.Future updateStackAsync(final UpdateStackRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateStackRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateStackResult call() throws Exception {
UpdateStackResult result = null;
try {
result = executeUpdateStack(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateStackInstancesAsync(UpdateStackInstancesRequest request) {
return updateStackInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future updateStackInstancesAsync(final UpdateStackInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateStackInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateStackInstancesResult call() throws Exception {
UpdateStackInstancesResult result = null;
try {
result = executeUpdateStackInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateStackSetAsync(UpdateStackSetRequest request) {
return updateStackSetAsync(request, null);
}
@Override
public java.util.concurrent.Future updateStackSetAsync(final UpdateStackSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateStackSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateStackSetResult call() throws Exception {
UpdateStackSetResult result = null;
try {
result = executeUpdateStackSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateTerminationProtectionAsync(UpdateTerminationProtectionRequest request) {
return updateTerminationProtectionAsync(request, null);
}
@Override
public java.util.concurrent.Future updateTerminationProtectionAsync(final UpdateTerminationProtectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateTerminationProtectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateTerminationProtectionResult call() throws Exception {
UpdateTerminationProtectionResult result = null;
try {
result = executeUpdateTerminationProtection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future validateTemplateAsync(ValidateTemplateRequest request) {
return validateTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future validateTemplateAsync(final ValidateTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ValidateTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ValidateTemplateResult call() throws Exception {
ValidateTemplateResult result = null;
try {
result = executeValidateTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending
* asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should
* call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to
* calling this method.
*/
@Override
public void shutdown() {
super.shutdown();
executorService.shutdownNow();
}
}