All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.resiliencehub.AWSResilienceHubAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Resilience Hub module holds the client classes that are used for communicating with AWS Resilience Hub Service

The newest version!
/*
 * Copyright 2019-2024 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.resiliencehub;

import javax.annotation.Generated;

import com.amazonaws.services.resiliencehub.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing AWS Resilience Hub 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.
 * 

*

* Resilience Hub helps you proactively prepare and protect your Amazon Web Services applications from disruptions. It * offers continual resiliency assessment and validation that integrates into your software development lifecycle. This * enables you to uncover resiliency weaknesses, ensure recovery time objective (RTO) and recovery point objective (RPO) * targets for your applications are met, and resolve issues before they are released into production. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSResilienceHubAsyncClient extends AWSResilienceHubClient implements AWSResilienceHubAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AWSResilienceHubAsyncClientBuilder asyncBuilder() { return AWSResilienceHubAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on AWS Resilience Hub using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSResilienceHubAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on AWS Resilience Hub using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSResilienceHubAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) { super(asyncClientParams, endpointDiscoveryEnabled); 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 addDraftAppVersionResourceMappingsAsync( AddDraftAppVersionResourceMappingsRequest request) { return addDraftAppVersionResourceMappingsAsync(request, null); } @Override public java.util.concurrent.Future addDraftAppVersionResourceMappingsAsync( final AddDraftAppVersionResourceMappingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AddDraftAppVersionResourceMappingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AddDraftAppVersionResourceMappingsResult call() throws Exception { AddDraftAppVersionResourceMappingsResult result = null; try { result = executeAddDraftAppVersionResourceMappings(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 batchUpdateRecommendationStatusAsync( BatchUpdateRecommendationStatusRequest request) { return batchUpdateRecommendationStatusAsync(request, null); } @Override public java.util.concurrent.Future batchUpdateRecommendationStatusAsync( final BatchUpdateRecommendationStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchUpdateRecommendationStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchUpdateRecommendationStatusResult call() throws Exception { BatchUpdateRecommendationStatusResult result = null; try { result = executeBatchUpdateRecommendationStatus(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 createAppAsync(CreateAppRequest request) { return createAppAsync(request, null); } @Override public java.util.concurrent.Future createAppAsync(final CreateAppRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppResult call() throws Exception { CreateAppResult result = null; try { result = executeCreateApp(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 createAppVersionAppComponentAsync(CreateAppVersionAppComponentRequest request) { return createAppVersionAppComponentAsync(request, null); } @Override public java.util.concurrent.Future createAppVersionAppComponentAsync(final CreateAppVersionAppComponentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppVersionAppComponentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppVersionAppComponentResult call() throws Exception { CreateAppVersionAppComponentResult result = null; try { result = executeCreateAppVersionAppComponent(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 createAppVersionResourceAsync(CreateAppVersionResourceRequest request) { return createAppVersionResourceAsync(request, null); } @Override public java.util.concurrent.Future createAppVersionResourceAsync(final CreateAppVersionResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppVersionResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppVersionResourceResult call() throws Exception { CreateAppVersionResourceResult result = null; try { result = executeCreateAppVersionResource(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 createRecommendationTemplateAsync(CreateRecommendationTemplateRequest request) { return createRecommendationTemplateAsync(request, null); } @Override public java.util.concurrent.Future createRecommendationTemplateAsync(final CreateRecommendationTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRecommendationTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRecommendationTemplateResult call() throws Exception { CreateRecommendationTemplateResult result = null; try { result = executeCreateRecommendationTemplate(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 createResiliencyPolicyAsync(CreateResiliencyPolicyRequest request) { return createResiliencyPolicyAsync(request, null); } @Override public java.util.concurrent.Future createResiliencyPolicyAsync(final CreateResiliencyPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateResiliencyPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateResiliencyPolicyResult call() throws Exception { CreateResiliencyPolicyResult result = null; try { result = executeCreateResiliencyPolicy(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 deleteAppAsync(DeleteAppRequest request) { return deleteAppAsync(request, null); } @Override public java.util.concurrent.Future deleteAppAsync(final DeleteAppRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppResult call() throws Exception { DeleteAppResult result = null; try { result = executeDeleteApp(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 deleteAppAssessmentAsync(DeleteAppAssessmentRequest request) { return deleteAppAssessmentAsync(request, null); } @Override public java.util.concurrent.Future deleteAppAssessmentAsync(final DeleteAppAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppAssessmentResult call() throws Exception { DeleteAppAssessmentResult result = null; try { result = executeDeleteAppAssessment(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 deleteAppInputSourceAsync(DeleteAppInputSourceRequest request) { return deleteAppInputSourceAsync(request, null); } @Override public java.util.concurrent.Future deleteAppInputSourceAsync(final DeleteAppInputSourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInputSourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInputSourceResult call() throws Exception { DeleteAppInputSourceResult result = null; try { result = executeDeleteAppInputSource(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 deleteAppVersionAppComponentAsync(DeleteAppVersionAppComponentRequest request) { return deleteAppVersionAppComponentAsync(request, null); } @Override public java.util.concurrent.Future deleteAppVersionAppComponentAsync(final DeleteAppVersionAppComponentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppVersionAppComponentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppVersionAppComponentResult call() throws Exception { DeleteAppVersionAppComponentResult result = null; try { result = executeDeleteAppVersionAppComponent(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 deleteAppVersionResourceAsync(DeleteAppVersionResourceRequest request) { return deleteAppVersionResourceAsync(request, null); } @Override public java.util.concurrent.Future deleteAppVersionResourceAsync(final DeleteAppVersionResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppVersionResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppVersionResourceResult call() throws Exception { DeleteAppVersionResourceResult result = null; try { result = executeDeleteAppVersionResource(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 deleteRecommendationTemplateAsync(DeleteRecommendationTemplateRequest request) { return deleteRecommendationTemplateAsync(request, null); } @Override public java.util.concurrent.Future deleteRecommendationTemplateAsync(final DeleteRecommendationTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRecommendationTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRecommendationTemplateResult call() throws Exception { DeleteRecommendationTemplateResult result = null; try { result = executeDeleteRecommendationTemplate(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 deleteResiliencyPolicyAsync(DeleteResiliencyPolicyRequest request) { return deleteResiliencyPolicyAsync(request, null); } @Override public java.util.concurrent.Future deleteResiliencyPolicyAsync(final DeleteResiliencyPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteResiliencyPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteResiliencyPolicyResult call() throws Exception { DeleteResiliencyPolicyResult result = null; try { result = executeDeleteResiliencyPolicy(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 describeAppAsync(DescribeAppRequest request) { return describeAppAsync(request, null); } @Override public java.util.concurrent.Future describeAppAsync(final DescribeAppRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppResult call() throws Exception { DescribeAppResult result = null; try { result = executeDescribeApp(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 describeAppAssessmentAsync(DescribeAppAssessmentRequest request) { return describeAppAssessmentAsync(request, null); } @Override public java.util.concurrent.Future describeAppAssessmentAsync(final DescribeAppAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppAssessmentResult call() throws Exception { DescribeAppAssessmentResult result = null; try { result = executeDescribeAppAssessment(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 describeAppVersionAsync(DescribeAppVersionRequest request) { return describeAppVersionAsync(request, null); } @Override public java.util.concurrent.Future describeAppVersionAsync(final DescribeAppVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppVersionResult call() throws Exception { DescribeAppVersionResult result = null; try { result = executeDescribeAppVersion(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 describeAppVersionAppComponentAsync(DescribeAppVersionAppComponentRequest request) { return describeAppVersionAppComponentAsync(request, null); } @Override public java.util.concurrent.Future describeAppVersionAppComponentAsync( final DescribeAppVersionAppComponentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppVersionAppComponentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppVersionAppComponentResult call() throws Exception { DescribeAppVersionAppComponentResult result = null; try { result = executeDescribeAppVersionAppComponent(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 describeAppVersionResourceAsync(DescribeAppVersionResourceRequest request) { return describeAppVersionResourceAsync(request, null); } @Override public java.util.concurrent.Future describeAppVersionResourceAsync(final DescribeAppVersionResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppVersionResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppVersionResourceResult call() throws Exception { DescribeAppVersionResourceResult result = null; try { result = executeDescribeAppVersionResource(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 describeAppVersionResourcesResolutionStatusAsync( DescribeAppVersionResourcesResolutionStatusRequest request) { return describeAppVersionResourcesResolutionStatusAsync(request, null); } @Override public java.util.concurrent.Future describeAppVersionResourcesResolutionStatusAsync( final DescribeAppVersionResourcesResolutionStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppVersionResourcesResolutionStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppVersionResourcesResolutionStatusResult call() throws Exception { DescribeAppVersionResourcesResolutionStatusResult result = null; try { result = executeDescribeAppVersionResourcesResolutionStatus(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 describeAppVersionTemplateAsync(DescribeAppVersionTemplateRequest request) { return describeAppVersionTemplateAsync(request, null); } @Override public java.util.concurrent.Future describeAppVersionTemplateAsync(final DescribeAppVersionTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppVersionTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppVersionTemplateResult call() throws Exception { DescribeAppVersionTemplateResult result = null; try { result = executeDescribeAppVersionTemplate(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 describeDraftAppVersionResourcesImportStatusAsync( DescribeDraftAppVersionResourcesImportStatusRequest request) { return describeDraftAppVersionResourcesImportStatusAsync(request, null); } @Override public java.util.concurrent.Future describeDraftAppVersionResourcesImportStatusAsync( final DescribeDraftAppVersionResourcesImportStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDraftAppVersionResourcesImportStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDraftAppVersionResourcesImportStatusResult call() throws Exception { DescribeDraftAppVersionResourcesImportStatusResult result = null; try { result = executeDescribeDraftAppVersionResourcesImportStatus(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 describeResiliencyPolicyAsync(DescribeResiliencyPolicyRequest request) { return describeResiliencyPolicyAsync(request, null); } @Override public java.util.concurrent.Future describeResiliencyPolicyAsync(final DescribeResiliencyPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeResiliencyPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeResiliencyPolicyResult call() throws Exception { DescribeResiliencyPolicyResult result = null; try { result = executeDescribeResiliencyPolicy(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 importResourcesToDraftAppVersionAsync( ImportResourcesToDraftAppVersionRequest request) { return importResourcesToDraftAppVersionAsync(request, null); } @Override public java.util.concurrent.Future importResourcesToDraftAppVersionAsync( final ImportResourcesToDraftAppVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ImportResourcesToDraftAppVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ImportResourcesToDraftAppVersionResult call() throws Exception { ImportResourcesToDraftAppVersionResult result = null; try { result = executeImportResourcesToDraftAppVersion(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 listAlarmRecommendationsAsync(ListAlarmRecommendationsRequest request) { return listAlarmRecommendationsAsync(request, null); } @Override public java.util.concurrent.Future listAlarmRecommendationsAsync(final ListAlarmRecommendationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAlarmRecommendationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAlarmRecommendationsResult call() throws Exception { ListAlarmRecommendationsResult result = null; try { result = executeListAlarmRecommendations(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 listAppAssessmentComplianceDriftsAsync( ListAppAssessmentComplianceDriftsRequest request) { return listAppAssessmentComplianceDriftsAsync(request, null); } @Override public java.util.concurrent.Future listAppAssessmentComplianceDriftsAsync( final ListAppAssessmentComplianceDriftsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppAssessmentComplianceDriftsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppAssessmentComplianceDriftsResult call() throws Exception { ListAppAssessmentComplianceDriftsResult result = null; try { result = executeListAppAssessmentComplianceDrifts(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 listAppAssessmentResourceDriftsAsync( ListAppAssessmentResourceDriftsRequest request) { return listAppAssessmentResourceDriftsAsync(request, null); } @Override public java.util.concurrent.Future listAppAssessmentResourceDriftsAsync( final ListAppAssessmentResourceDriftsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppAssessmentResourceDriftsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppAssessmentResourceDriftsResult call() throws Exception { ListAppAssessmentResourceDriftsResult result = null; try { result = executeListAppAssessmentResourceDrifts(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 listAppAssessmentsAsync(ListAppAssessmentsRequest request) { return listAppAssessmentsAsync(request, null); } @Override public java.util.concurrent.Future listAppAssessmentsAsync(final ListAppAssessmentsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppAssessmentsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppAssessmentsResult call() throws Exception { ListAppAssessmentsResult result = null; try { result = executeListAppAssessments(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 listAppComponentCompliancesAsync(ListAppComponentCompliancesRequest request) { return listAppComponentCompliancesAsync(request, null); } @Override public java.util.concurrent.Future listAppComponentCompliancesAsync(final ListAppComponentCompliancesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppComponentCompliancesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppComponentCompliancesResult call() throws Exception { ListAppComponentCompliancesResult result = null; try { result = executeListAppComponentCompliances(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 listAppComponentRecommendationsAsync( ListAppComponentRecommendationsRequest request) { return listAppComponentRecommendationsAsync(request, null); } @Override public java.util.concurrent.Future listAppComponentRecommendationsAsync( final ListAppComponentRecommendationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppComponentRecommendationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppComponentRecommendationsResult call() throws Exception { ListAppComponentRecommendationsResult result = null; try { result = executeListAppComponentRecommendations(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 listAppInputSourcesAsync(ListAppInputSourcesRequest request) { return listAppInputSourcesAsync(request, null); } @Override public java.util.concurrent.Future listAppInputSourcesAsync(final ListAppInputSourcesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInputSourcesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInputSourcesResult call() throws Exception { ListAppInputSourcesResult result = null; try { result = executeListAppInputSources(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 listAppVersionAppComponentsAsync(ListAppVersionAppComponentsRequest request) { return listAppVersionAppComponentsAsync(request, null); } @Override public java.util.concurrent.Future listAppVersionAppComponentsAsync(final ListAppVersionAppComponentsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppVersionAppComponentsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppVersionAppComponentsResult call() throws Exception { ListAppVersionAppComponentsResult result = null; try { result = executeListAppVersionAppComponents(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 listAppVersionResourceMappingsAsync(ListAppVersionResourceMappingsRequest request) { return listAppVersionResourceMappingsAsync(request, null); } @Override public java.util.concurrent.Future listAppVersionResourceMappingsAsync( final ListAppVersionResourceMappingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppVersionResourceMappingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppVersionResourceMappingsResult call() throws Exception { ListAppVersionResourceMappingsResult result = null; try { result = executeListAppVersionResourceMappings(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 listAppVersionResourcesAsync(ListAppVersionResourcesRequest request) { return listAppVersionResourcesAsync(request, null); } @Override public java.util.concurrent.Future listAppVersionResourcesAsync(final ListAppVersionResourcesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppVersionResourcesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppVersionResourcesResult call() throws Exception { ListAppVersionResourcesResult result = null; try { result = executeListAppVersionResources(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 listAppVersionsAsync(ListAppVersionsRequest request) { return listAppVersionsAsync(request, null); } @Override public java.util.concurrent.Future listAppVersionsAsync(final ListAppVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppVersionsResult call() throws Exception { ListAppVersionsResult result = null; try { result = executeListAppVersions(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 listAppsAsync(ListAppsRequest request) { return listAppsAsync(request, null); } @Override public java.util.concurrent.Future listAppsAsync(final ListAppsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppsResult call() throws Exception { ListAppsResult result = null; try { result = executeListApps(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 listRecommendationTemplatesAsync(ListRecommendationTemplatesRequest request) { return listRecommendationTemplatesAsync(request, null); } @Override public java.util.concurrent.Future listRecommendationTemplatesAsync(final ListRecommendationTemplatesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRecommendationTemplatesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRecommendationTemplatesResult call() throws Exception { ListRecommendationTemplatesResult result = null; try { result = executeListRecommendationTemplates(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 listResiliencyPoliciesAsync(ListResiliencyPoliciesRequest request) { return listResiliencyPoliciesAsync(request, null); } @Override public java.util.concurrent.Future listResiliencyPoliciesAsync(final ListResiliencyPoliciesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResiliencyPoliciesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResiliencyPoliciesResult call() throws Exception { ListResiliencyPoliciesResult result = null; try { result = executeListResiliencyPolicies(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 listSopRecommendationsAsync(ListSopRecommendationsRequest request) { return listSopRecommendationsAsync(request, null); } @Override public java.util.concurrent.Future listSopRecommendationsAsync(final ListSopRecommendationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSopRecommendationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSopRecommendationsResult call() throws Exception { ListSopRecommendationsResult result = null; try { result = executeListSopRecommendations(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 listSuggestedResiliencyPoliciesAsync( ListSuggestedResiliencyPoliciesRequest request) { return listSuggestedResiliencyPoliciesAsync(request, null); } @Override public java.util.concurrent.Future listSuggestedResiliencyPoliciesAsync( final ListSuggestedResiliencyPoliciesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSuggestedResiliencyPoliciesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSuggestedResiliencyPoliciesResult call() throws Exception { ListSuggestedResiliencyPoliciesResult result = null; try { result = executeListSuggestedResiliencyPolicies(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 listTagsForResourceAsync(ListTagsForResourceRequest request) { return listTagsForResourceAsync(request, null); } @Override public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTagsForResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTagsForResourceResult call() throws Exception { ListTagsForResourceResult result = null; try { result = executeListTagsForResource(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 listTestRecommendationsAsync(ListTestRecommendationsRequest request) { return listTestRecommendationsAsync(request, null); } @Override public java.util.concurrent.Future listTestRecommendationsAsync(final ListTestRecommendationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTestRecommendationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTestRecommendationsResult call() throws Exception { ListTestRecommendationsResult result = null; try { result = executeListTestRecommendations(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 listUnsupportedAppVersionResourcesAsync( ListUnsupportedAppVersionResourcesRequest request) { return listUnsupportedAppVersionResourcesAsync(request, null); } @Override public java.util.concurrent.Future listUnsupportedAppVersionResourcesAsync( final ListUnsupportedAppVersionResourcesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListUnsupportedAppVersionResourcesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListUnsupportedAppVersionResourcesResult call() throws Exception { ListUnsupportedAppVersionResourcesResult result = null; try { result = executeListUnsupportedAppVersionResources(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 publishAppVersionAsync(PublishAppVersionRequest request) { return publishAppVersionAsync(request, null); } @Override public java.util.concurrent.Future publishAppVersionAsync(final PublishAppVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PublishAppVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PublishAppVersionResult call() throws Exception { PublishAppVersionResult result = null; try { result = executePublishAppVersion(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 putDraftAppVersionTemplateAsync(PutDraftAppVersionTemplateRequest request) { return putDraftAppVersionTemplateAsync(request, null); } @Override public java.util.concurrent.Future putDraftAppVersionTemplateAsync(final PutDraftAppVersionTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutDraftAppVersionTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutDraftAppVersionTemplateResult call() throws Exception { PutDraftAppVersionTemplateResult result = null; try { result = executePutDraftAppVersionTemplate(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 removeDraftAppVersionResourceMappingsAsync( RemoveDraftAppVersionResourceMappingsRequest request) { return removeDraftAppVersionResourceMappingsAsync(request, null); } @Override public java.util.concurrent.Future removeDraftAppVersionResourceMappingsAsync( final RemoveDraftAppVersionResourceMappingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveDraftAppVersionResourceMappingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RemoveDraftAppVersionResourceMappingsResult call() throws Exception { RemoveDraftAppVersionResourceMappingsResult result = null; try { result = executeRemoveDraftAppVersionResourceMappings(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 resolveAppVersionResourcesAsync(ResolveAppVersionResourcesRequest request) { return resolveAppVersionResourcesAsync(request, null); } @Override public java.util.concurrent.Future resolveAppVersionResourcesAsync(final ResolveAppVersionResourcesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResolveAppVersionResourcesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResolveAppVersionResourcesResult call() throws Exception { ResolveAppVersionResourcesResult result = null; try { result = executeResolveAppVersionResources(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 startAppAssessmentAsync(StartAppAssessmentRequest request) { return startAppAssessmentAsync(request, null); } @Override public java.util.concurrent.Future startAppAssessmentAsync(final StartAppAssessmentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartAppAssessmentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartAppAssessmentResult call() throws Exception { StartAppAssessmentResult result = null; try { result = executeStartAppAssessment(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 tagResourceAsync(TagResourceRequest request) { return tagResourceAsync(request, null); } @Override public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TagResourceResult call() throws Exception { TagResourceResult result = null; try { result = executeTagResource(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 untagResourceAsync(UntagResourceRequest request) { return untagResourceAsync(request, null); } @Override public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UntagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UntagResourceResult call() throws Exception { UntagResourceResult result = null; try { result = executeUntagResource(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 updateAppAsync(UpdateAppRequest request) { return updateAppAsync(request, null); } @Override public java.util.concurrent.Future updateAppAsync(final UpdateAppRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppResult call() throws Exception { UpdateAppResult result = null; try { result = executeUpdateApp(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 updateAppVersionAsync(UpdateAppVersionRequest request) { return updateAppVersionAsync(request, null); } @Override public java.util.concurrent.Future updateAppVersionAsync(final UpdateAppVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppVersionResult call() throws Exception { UpdateAppVersionResult result = null; try { result = executeUpdateAppVersion(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 updateAppVersionAppComponentAsync(UpdateAppVersionAppComponentRequest request) { return updateAppVersionAppComponentAsync(request, null); } @Override public java.util.concurrent.Future updateAppVersionAppComponentAsync(final UpdateAppVersionAppComponentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppVersionAppComponentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppVersionAppComponentResult call() throws Exception { UpdateAppVersionAppComponentResult result = null; try { result = executeUpdateAppVersionAppComponent(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 updateAppVersionResourceAsync(UpdateAppVersionResourceRequest request) { return updateAppVersionResourceAsync(request, null); } @Override public java.util.concurrent.Future updateAppVersionResourceAsync(final UpdateAppVersionResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppVersionResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppVersionResourceResult call() throws Exception { UpdateAppVersionResourceResult result = null; try { result = executeUpdateAppVersionResource(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 updateResiliencyPolicyAsync(UpdateResiliencyPolicyRequest request) { return updateResiliencyPolicyAsync(request, null); } @Override public java.util.concurrent.Future updateResiliencyPolicyAsync(final UpdateResiliencyPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateResiliencyPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateResiliencyPolicyResult call() throws Exception { UpdateResiliencyPolicyResult result = null; try { result = executeUpdateResiliencyPolicy(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(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy