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

com.amazonaws.services.mgn.AWSmgnAsyncClient Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show 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.mgn;

import javax.annotation.Generated;

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

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing mgn 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.
 * 

*

* The Application Migration Service service. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSmgnAsyncClient extends AWSmgnClient implements AWSmgnAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AWSmgnAsyncClientBuilder asyncBuilder() { return AWSmgnAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on mgn using the specified parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSmgnAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on mgn using the specified parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSmgnAsyncClient(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 archiveApplicationAsync(ArchiveApplicationRequest request) { return archiveApplicationAsync(request, null); } @Override public java.util.concurrent.Future archiveApplicationAsync(final ArchiveApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ArchiveApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ArchiveApplicationResult call() throws Exception { ArchiveApplicationResult result = null; try { result = executeArchiveApplication(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 archiveWaveAsync(ArchiveWaveRequest request) { return archiveWaveAsync(request, null); } @Override public java.util.concurrent.Future archiveWaveAsync(final ArchiveWaveRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ArchiveWaveRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ArchiveWaveResult call() throws Exception { ArchiveWaveResult result = null; try { result = executeArchiveWave(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 associateApplicationsAsync(AssociateApplicationsRequest request) { return associateApplicationsAsync(request, null); } @Override public java.util.concurrent.Future associateApplicationsAsync(final AssociateApplicationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateApplicationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateApplicationsResult call() throws Exception { AssociateApplicationsResult result = null; try { result = executeAssociateApplications(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 associateSourceServersAsync(AssociateSourceServersRequest request) { return associateSourceServersAsync(request, null); } @Override public java.util.concurrent.Future associateSourceServersAsync(final AssociateSourceServersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateSourceServersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateSourceServersResult call() throws Exception { AssociateSourceServersResult result = null; try { result = executeAssociateSourceServers(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 changeServerLifeCycleStateAsync(ChangeServerLifeCycleStateRequest request) { return changeServerLifeCycleStateAsync(request, null); } @Override public java.util.concurrent.Future changeServerLifeCycleStateAsync(final ChangeServerLifeCycleStateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ChangeServerLifeCycleStateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ChangeServerLifeCycleStateResult call() throws Exception { ChangeServerLifeCycleStateResult result = null; try { result = executeChangeServerLifeCycleState(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 createApplicationAsync(CreateApplicationRequest request) { return createApplicationAsync(request, null); } @Override public java.util.concurrent.Future createApplicationAsync(final CreateApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateApplicationResult call() throws Exception { CreateApplicationResult result = null; try { result = executeCreateApplication(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 createConnectorAsync(CreateConnectorRequest request) { return createConnectorAsync(request, null); } @Override public java.util.concurrent.Future createConnectorAsync(final CreateConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateConnectorResult call() throws Exception { CreateConnectorResult result = null; try { result = executeCreateConnector(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 createLaunchConfigurationTemplateAsync( CreateLaunchConfigurationTemplateRequest request) { return createLaunchConfigurationTemplateAsync(request, null); } @Override public java.util.concurrent.Future createLaunchConfigurationTemplateAsync( final CreateLaunchConfigurationTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateLaunchConfigurationTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateLaunchConfigurationTemplateResult call() throws Exception { CreateLaunchConfigurationTemplateResult result = null; try { result = executeCreateLaunchConfigurationTemplate(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 createReplicationConfigurationTemplateAsync( CreateReplicationConfigurationTemplateRequest request) { return createReplicationConfigurationTemplateAsync(request, null); } @Override public java.util.concurrent.Future createReplicationConfigurationTemplateAsync( final CreateReplicationConfigurationTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateReplicationConfigurationTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateReplicationConfigurationTemplateResult call() throws Exception { CreateReplicationConfigurationTemplateResult result = null; try { result = executeCreateReplicationConfigurationTemplate(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 createWaveAsync(CreateWaveRequest request) { return createWaveAsync(request, null); } @Override public java.util.concurrent.Future createWaveAsync(final CreateWaveRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateWaveRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateWaveResult call() throws Exception { CreateWaveResult result = null; try { result = executeCreateWave(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 deleteApplicationAsync(DeleteApplicationRequest request) { return deleteApplicationAsync(request, null); } @Override public java.util.concurrent.Future deleteApplicationAsync(final DeleteApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteApplicationResult call() throws Exception { DeleteApplicationResult result = null; try { result = executeDeleteApplication(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 deleteConnectorAsync(DeleteConnectorRequest request) { return deleteConnectorAsync(request, null); } @Override public java.util.concurrent.Future deleteConnectorAsync(final DeleteConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteConnectorResult call() throws Exception { DeleteConnectorResult result = null; try { result = executeDeleteConnector(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 deleteJobAsync(DeleteJobRequest request) { return deleteJobAsync(request, null); } @Override public java.util.concurrent.Future deleteJobAsync(final DeleteJobRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteJobRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteJobResult call() throws Exception { DeleteJobResult result = null; try { result = executeDeleteJob(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 deleteLaunchConfigurationTemplateAsync( DeleteLaunchConfigurationTemplateRequest request) { return deleteLaunchConfigurationTemplateAsync(request, null); } @Override public java.util.concurrent.Future deleteLaunchConfigurationTemplateAsync( final DeleteLaunchConfigurationTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteLaunchConfigurationTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteLaunchConfigurationTemplateResult call() throws Exception { DeleteLaunchConfigurationTemplateResult result = null; try { result = executeDeleteLaunchConfigurationTemplate(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 deleteReplicationConfigurationTemplateAsync( DeleteReplicationConfigurationTemplateRequest request) { return deleteReplicationConfigurationTemplateAsync(request, null); } @Override public java.util.concurrent.Future deleteReplicationConfigurationTemplateAsync( final DeleteReplicationConfigurationTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteReplicationConfigurationTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteReplicationConfigurationTemplateResult call() throws Exception { DeleteReplicationConfigurationTemplateResult result = null; try { result = executeDeleteReplicationConfigurationTemplate(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 deleteSourceServerAsync(DeleteSourceServerRequest request) { return deleteSourceServerAsync(request, null); } @Override public java.util.concurrent.Future deleteSourceServerAsync(final DeleteSourceServerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSourceServerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSourceServerResult call() throws Exception { DeleteSourceServerResult result = null; try { result = executeDeleteSourceServer(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 deleteVcenterClientAsync(DeleteVcenterClientRequest request) { return deleteVcenterClientAsync(request, null); } @Override public java.util.concurrent.Future deleteVcenterClientAsync(final DeleteVcenterClientRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteVcenterClientRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteVcenterClientResult call() throws Exception { DeleteVcenterClientResult result = null; try { result = executeDeleteVcenterClient(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 deleteWaveAsync(DeleteWaveRequest request) { return deleteWaveAsync(request, null); } @Override public java.util.concurrent.Future deleteWaveAsync(final DeleteWaveRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteWaveRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteWaveResult call() throws Exception { DeleteWaveResult result = null; try { result = executeDeleteWave(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 describeJobLogItemsAsync(DescribeJobLogItemsRequest request) { return describeJobLogItemsAsync(request, null); } @Override public java.util.concurrent.Future describeJobLogItemsAsync(final DescribeJobLogItemsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeJobLogItemsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeJobLogItemsResult call() throws Exception { DescribeJobLogItemsResult result = null; try { result = executeDescribeJobLogItems(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 describeJobsAsync(DescribeJobsRequest request) { return describeJobsAsync(request, null); } @Override public java.util.concurrent.Future describeJobsAsync(final DescribeJobsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeJobsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeJobsResult call() throws Exception { DescribeJobsResult result = null; try { result = executeDescribeJobs(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 describeLaunchConfigurationTemplatesAsync( DescribeLaunchConfigurationTemplatesRequest request) { return describeLaunchConfigurationTemplatesAsync(request, null); } @Override public java.util.concurrent.Future describeLaunchConfigurationTemplatesAsync( final DescribeLaunchConfigurationTemplatesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeLaunchConfigurationTemplatesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeLaunchConfigurationTemplatesResult call() throws Exception { DescribeLaunchConfigurationTemplatesResult result = null; try { result = executeDescribeLaunchConfigurationTemplates(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 describeReplicationConfigurationTemplatesAsync( DescribeReplicationConfigurationTemplatesRequest request) { return describeReplicationConfigurationTemplatesAsync(request, null); } @Override public java.util.concurrent.Future describeReplicationConfigurationTemplatesAsync( final DescribeReplicationConfigurationTemplatesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeReplicationConfigurationTemplatesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeReplicationConfigurationTemplatesResult call() throws Exception { DescribeReplicationConfigurationTemplatesResult result = null; try { result = executeDescribeReplicationConfigurationTemplates(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 describeSourceServersAsync(DescribeSourceServersRequest request) { return describeSourceServersAsync(request, null); } @Override public java.util.concurrent.Future describeSourceServersAsync(final DescribeSourceServersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeSourceServersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeSourceServersResult call() throws Exception { DescribeSourceServersResult result = null; try { result = executeDescribeSourceServers(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 describeVcenterClientsAsync(DescribeVcenterClientsRequest request) { return describeVcenterClientsAsync(request, null); } @Override public java.util.concurrent.Future describeVcenterClientsAsync(final DescribeVcenterClientsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeVcenterClientsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeVcenterClientsResult call() throws Exception { DescribeVcenterClientsResult result = null; try { result = executeDescribeVcenterClients(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 disassociateApplicationsAsync(DisassociateApplicationsRequest request) { return disassociateApplicationsAsync(request, null); } @Override public java.util.concurrent.Future disassociateApplicationsAsync(final DisassociateApplicationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateApplicationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateApplicationsResult call() throws Exception { DisassociateApplicationsResult result = null; try { result = executeDisassociateApplications(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 disassociateSourceServersAsync(DisassociateSourceServersRequest request) { return disassociateSourceServersAsync(request, null); } @Override public java.util.concurrent.Future disassociateSourceServersAsync(final DisassociateSourceServersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateSourceServersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateSourceServersResult call() throws Exception { DisassociateSourceServersResult result = null; try { result = executeDisassociateSourceServers(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 disconnectFromServiceAsync(DisconnectFromServiceRequest request) { return disconnectFromServiceAsync(request, null); } @Override public java.util.concurrent.Future disconnectFromServiceAsync(final DisconnectFromServiceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisconnectFromServiceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisconnectFromServiceResult call() throws Exception { DisconnectFromServiceResult result = null; try { result = executeDisconnectFromService(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 finalizeCutoverAsync(FinalizeCutoverRequest request) { return finalizeCutoverAsync(request, null); } @Override public java.util.concurrent.Future finalizeCutoverAsync(final FinalizeCutoverRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final FinalizeCutoverRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public FinalizeCutoverResult call() throws Exception { FinalizeCutoverResult result = null; try { result = executeFinalizeCutover(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 getLaunchConfigurationAsync(GetLaunchConfigurationRequest request) { return getLaunchConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getLaunchConfigurationAsync(final GetLaunchConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetLaunchConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetLaunchConfigurationResult call() throws Exception { GetLaunchConfigurationResult result = null; try { result = executeGetLaunchConfiguration(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 getReplicationConfigurationAsync(GetReplicationConfigurationRequest request) { return getReplicationConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getReplicationConfigurationAsync(final GetReplicationConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetReplicationConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetReplicationConfigurationResult call() throws Exception { GetReplicationConfigurationResult result = null; try { result = executeGetReplicationConfiguration(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 initializeServiceAsync(InitializeServiceRequest request) { return initializeServiceAsync(request, null); } @Override public java.util.concurrent.Future initializeServiceAsync(final InitializeServiceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final InitializeServiceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public InitializeServiceResult call() throws Exception { InitializeServiceResult result = null; try { result = executeInitializeService(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 listApplicationsAsync(ListApplicationsRequest request) { return listApplicationsAsync(request, null); } @Override public java.util.concurrent.Future listApplicationsAsync(final ListApplicationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListApplicationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListApplicationsResult call() throws Exception { ListApplicationsResult result = null; try { result = executeListApplications(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 listConnectorsAsync(ListConnectorsRequest request) { return listConnectorsAsync(request, null); } @Override public java.util.concurrent.Future listConnectorsAsync(final ListConnectorsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListConnectorsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListConnectorsResult call() throws Exception { ListConnectorsResult result = null; try { result = executeListConnectors(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 listExportErrorsAsync(ListExportErrorsRequest request) { return listExportErrorsAsync(request, null); } @Override public java.util.concurrent.Future listExportErrorsAsync(final ListExportErrorsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListExportErrorsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListExportErrorsResult call() throws Exception { ListExportErrorsResult result = null; try { result = executeListExportErrors(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 listImportErrorsAsync(ListImportErrorsRequest request) { return listImportErrorsAsync(request, null); } @Override public java.util.concurrent.Future listImportErrorsAsync(final ListImportErrorsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListImportErrorsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListImportErrorsResult call() throws Exception { ListImportErrorsResult result = null; try { result = executeListImportErrors(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 listManagedAccountsAsync(ListManagedAccountsRequest request) { return listManagedAccountsAsync(request, null); } @Override public java.util.concurrent.Future listManagedAccountsAsync(final ListManagedAccountsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListManagedAccountsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListManagedAccountsResult call() throws Exception { ListManagedAccountsResult result = null; try { result = executeListManagedAccounts(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 listSourceServerActionsAsync(ListSourceServerActionsRequest request) { return listSourceServerActionsAsync(request, null); } @Override public java.util.concurrent.Future listSourceServerActionsAsync(final ListSourceServerActionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSourceServerActionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSourceServerActionsResult call() throws Exception { ListSourceServerActionsResult result = null; try { result = executeListSourceServerActions(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 listTemplateActionsAsync(ListTemplateActionsRequest request) { return listTemplateActionsAsync(request, null); } @Override public java.util.concurrent.Future listTemplateActionsAsync(final ListTemplateActionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTemplateActionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTemplateActionsResult call() throws Exception { ListTemplateActionsResult result = null; try { result = executeListTemplateActions(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 listWavesAsync(ListWavesRequest request) { return listWavesAsync(request, null); } @Override public java.util.concurrent.Future listWavesAsync(final ListWavesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListWavesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListWavesResult call() throws Exception { ListWavesResult result = null; try { result = executeListWaves(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 markAsArchivedAsync(MarkAsArchivedRequest request) { return markAsArchivedAsync(request, null); } @Override public java.util.concurrent.Future markAsArchivedAsync(final MarkAsArchivedRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final MarkAsArchivedRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public MarkAsArchivedResult call() throws Exception { MarkAsArchivedResult result = null; try { result = executeMarkAsArchived(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 pauseReplicationAsync(PauseReplicationRequest request) { return pauseReplicationAsync(request, null); } @Override public java.util.concurrent.Future pauseReplicationAsync(final PauseReplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PauseReplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PauseReplicationResult call() throws Exception { PauseReplicationResult result = null; try { result = executePauseReplication(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 putSourceServerActionAsync(PutSourceServerActionRequest request) { return putSourceServerActionAsync(request, null); } @Override public java.util.concurrent.Future putSourceServerActionAsync(final PutSourceServerActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutSourceServerActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutSourceServerActionResult call() throws Exception { PutSourceServerActionResult result = null; try { result = executePutSourceServerAction(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 putTemplateActionAsync(PutTemplateActionRequest request) { return putTemplateActionAsync(request, null); } @Override public java.util.concurrent.Future putTemplateActionAsync(final PutTemplateActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutTemplateActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutTemplateActionResult call() throws Exception { PutTemplateActionResult result = null; try { result = executePutTemplateAction(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 removeSourceServerActionAsync(RemoveSourceServerActionRequest request) { return removeSourceServerActionAsync(request, null); } @Override public java.util.concurrent.Future removeSourceServerActionAsync(final RemoveSourceServerActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveSourceServerActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RemoveSourceServerActionResult call() throws Exception { RemoveSourceServerActionResult result = null; try { result = executeRemoveSourceServerAction(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 removeTemplateActionAsync(RemoveTemplateActionRequest request) { return removeTemplateActionAsync(request, null); } @Override public java.util.concurrent.Future removeTemplateActionAsync(final RemoveTemplateActionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveTemplateActionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RemoveTemplateActionResult call() throws Exception { RemoveTemplateActionResult result = null; try { result = executeRemoveTemplateAction(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 resumeReplicationAsync(ResumeReplicationRequest request) { return resumeReplicationAsync(request, null); } @Override public java.util.concurrent.Future resumeReplicationAsync(final ResumeReplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResumeReplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResumeReplicationResult call() throws Exception { ResumeReplicationResult result = null; try { result = executeResumeReplication(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 retryDataReplicationAsync(RetryDataReplicationRequest request) { return retryDataReplicationAsync(request, null); } @Override public java.util.concurrent.Future retryDataReplicationAsync(final RetryDataReplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RetryDataReplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RetryDataReplicationResult call() throws Exception { RetryDataReplicationResult result = null; try { result = executeRetryDataReplication(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 startCutoverAsync(StartCutoverRequest request) { return startCutoverAsync(request, null); } @Override public java.util.concurrent.Future startCutoverAsync(final StartCutoverRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartCutoverRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartCutoverResult call() throws Exception { StartCutoverResult result = null; try { result = executeStartCutover(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 startExportAsync(StartExportRequest request) { return startExportAsync(request, null); } @Override public java.util.concurrent.Future startExportAsync(final StartExportRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartExportRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartExportResult call() throws Exception { StartExportResult result = null; try { result = executeStartExport(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 startImportAsync(StartImportRequest request) { return startImportAsync(request, null); } @Override public java.util.concurrent.Future startImportAsync(final StartImportRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartImportRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartImportResult call() throws Exception { StartImportResult result = null; try { result = executeStartImport(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 startReplicationAsync(StartReplicationRequest request) { return startReplicationAsync(request, null); } @Override public java.util.concurrent.Future startReplicationAsync(final StartReplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartReplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartReplicationResult call() throws Exception { StartReplicationResult result = null; try { result = executeStartReplication(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 startTestAsync(StartTestRequest request) { return startTestAsync(request, null); } @Override public java.util.concurrent.Future startTestAsync(final StartTestRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartTestRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartTestResult call() throws Exception { StartTestResult result = null; try { result = executeStartTest(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 stopReplicationAsync(StopReplicationRequest request) { return stopReplicationAsync(request, null); } @Override public java.util.concurrent.Future stopReplicationAsync(final StopReplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StopReplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StopReplicationResult call() throws Exception { StopReplicationResult result = null; try { result = executeStopReplication(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 terminateTargetInstancesAsync(TerminateTargetInstancesRequest request) { return terminateTargetInstancesAsync(request, null); } @Override public java.util.concurrent.Future terminateTargetInstancesAsync(final TerminateTargetInstancesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TerminateTargetInstancesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TerminateTargetInstancesResult call() throws Exception { TerminateTargetInstancesResult result = null; try { result = executeTerminateTargetInstances(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 unarchiveApplicationAsync(UnarchiveApplicationRequest request) { return unarchiveApplicationAsync(request, null); } @Override public java.util.concurrent.Future unarchiveApplicationAsync(final UnarchiveApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UnarchiveApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UnarchiveApplicationResult call() throws Exception { UnarchiveApplicationResult result = null; try { result = executeUnarchiveApplication(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 unarchiveWaveAsync(UnarchiveWaveRequest request) { return unarchiveWaveAsync(request, null); } @Override public java.util.concurrent.Future unarchiveWaveAsync(final UnarchiveWaveRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UnarchiveWaveRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UnarchiveWaveResult call() throws Exception { UnarchiveWaveResult result = null; try { result = executeUnarchiveWave(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 updateApplicationAsync(UpdateApplicationRequest request) { return updateApplicationAsync(request, null); } @Override public java.util.concurrent.Future updateApplicationAsync(final UpdateApplicationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateApplicationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateApplicationResult call() throws Exception { UpdateApplicationResult result = null; try { result = executeUpdateApplication(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 updateConnectorAsync(UpdateConnectorRequest request) { return updateConnectorAsync(request, null); } @Override public java.util.concurrent.Future updateConnectorAsync(final UpdateConnectorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateConnectorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateConnectorResult call() throws Exception { UpdateConnectorResult result = null; try { result = executeUpdateConnector(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 updateLaunchConfigurationAsync(UpdateLaunchConfigurationRequest request) { return updateLaunchConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateLaunchConfigurationAsync(final UpdateLaunchConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateLaunchConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateLaunchConfigurationResult call() throws Exception { UpdateLaunchConfigurationResult result = null; try { result = executeUpdateLaunchConfiguration(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 updateLaunchConfigurationTemplateAsync( UpdateLaunchConfigurationTemplateRequest request) { return updateLaunchConfigurationTemplateAsync(request, null); } @Override public java.util.concurrent.Future updateLaunchConfigurationTemplateAsync( final UpdateLaunchConfigurationTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateLaunchConfigurationTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateLaunchConfigurationTemplateResult call() throws Exception { UpdateLaunchConfigurationTemplateResult result = null; try { result = executeUpdateLaunchConfigurationTemplate(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 updateReplicationConfigurationAsync(UpdateReplicationConfigurationRequest request) { return updateReplicationConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateReplicationConfigurationAsync( final UpdateReplicationConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateReplicationConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateReplicationConfigurationResult call() throws Exception { UpdateReplicationConfigurationResult result = null; try { result = executeUpdateReplicationConfiguration(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 updateReplicationConfigurationTemplateAsync( UpdateReplicationConfigurationTemplateRequest request) { return updateReplicationConfigurationTemplateAsync(request, null); } @Override public java.util.concurrent.Future updateReplicationConfigurationTemplateAsync( final UpdateReplicationConfigurationTemplateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateReplicationConfigurationTemplateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateReplicationConfigurationTemplateResult call() throws Exception { UpdateReplicationConfigurationTemplateResult result = null; try { result = executeUpdateReplicationConfigurationTemplate(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 updateSourceServerAsync(UpdateSourceServerRequest request) { return updateSourceServerAsync(request, null); } @Override public java.util.concurrent.Future updateSourceServerAsync(final UpdateSourceServerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSourceServerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSourceServerResult call() throws Exception { UpdateSourceServerResult result = null; try { result = executeUpdateSourceServer(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 updateSourceServerReplicationTypeAsync( UpdateSourceServerReplicationTypeRequest request) { return updateSourceServerReplicationTypeAsync(request, null); } @Override public java.util.concurrent.Future updateSourceServerReplicationTypeAsync( final UpdateSourceServerReplicationTypeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSourceServerReplicationTypeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSourceServerReplicationTypeResult call() throws Exception { UpdateSourceServerReplicationTypeResult result = null; try { result = executeUpdateSourceServerReplicationType(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 updateWaveAsync(UpdateWaveRequest request) { return updateWaveAsync(request, null); } @Override public java.util.concurrent.Future updateWaveAsync(final UpdateWaveRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateWaveRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateWaveResult call() throws Exception { UpdateWaveResult result = null; try { result = executeUpdateWave(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 - 2025 Weber Informatics LLC | Privacy Policy