com.amazonaws.services.devicefarm.AWSDeviceFarmAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-devicefarm Show documentation
/*
* 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.devicefarm;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.devicefarm.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
/**
* Client for accessing AWS Device Farm 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.
*
*
* Welcome to the AWS Device Farm API documentation, which contains APIs for:
*
*
* -
*
* Testing on desktop browsers
*
*
* Device Farm makes it possible for you to test your web applications on desktop browsers using Selenium. The APIs for
* desktop browser testing contain TestGrid
in their names. For more information, see Testing Web Applications on Selenium with Device
* Farm.
*
*
* -
*
* Testing on real mobile devices
*
*
* Device Farm makes it possible for you to test apps on physical phones, tablets, and other devices in the cloud. For
* more information, see the Device Farm
* Developer Guide.
*
*
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSDeviceFarmAsyncClient extends AWSDeviceFarmClient implements AWSDeviceFarmAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm. A credentials provider chain
* will be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AWSDeviceFarmAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm. A credentials provider chain
* will be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to AWS Device Farm (ex: proxy
* settings, retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSDeviceFarmAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the specified AWS account
* credentials.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSDeviceFarmAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the specified AWS account
* credentials and executor service. Default client settings will be used.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDeviceFarmAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSDeviceFarmAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the specified AWS account
* credentials, executor service, and client configuration options.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDeviceFarmAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSDeviceFarmAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSDeviceFarmAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the specified AWS account
* credentials provider. Default client settings will be used.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSDeviceFarmAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the provided AWS account
* credentials provider and client configuration options.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDeviceFarmAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSDeviceFarmAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the specified AWS account
* credentials provider and executor service. Default client settings will be used.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDeviceFarmAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSDeviceFarmAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the specified AWS account
* credentials provider, executor service, and client configuration options.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSDeviceFarmAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSDeviceFarmAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSDeviceFarmAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSDeviceFarmAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AWSDeviceFarmAsyncClientBuilder asyncBuilder() {
return AWSDeviceFarmAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSDeviceFarmAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Device Farm using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSDeviceFarmAsyncClient(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 createDevicePoolAsync(CreateDevicePoolRequest request) {
return createDevicePoolAsync(request, null);
}
@Override
public java.util.concurrent.Future createDevicePoolAsync(final CreateDevicePoolRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDevicePoolRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDevicePoolResult call() throws Exception {
CreateDevicePoolResult result = null;
try {
result = executeCreateDevicePool(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 createInstanceProfileAsync(CreateInstanceProfileRequest request) {
return createInstanceProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future createInstanceProfileAsync(final CreateInstanceProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateInstanceProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateInstanceProfileResult call() throws Exception {
CreateInstanceProfileResult result = null;
try {
result = executeCreateInstanceProfile(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 createNetworkProfileAsync(CreateNetworkProfileRequest request) {
return createNetworkProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future createNetworkProfileAsync(final CreateNetworkProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateNetworkProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateNetworkProfileResult call() throws Exception {
CreateNetworkProfileResult result = null;
try {
result = executeCreateNetworkProfile(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 createProjectAsync(CreateProjectRequest request) {
return createProjectAsync(request, null);
}
@Override
public java.util.concurrent.Future createProjectAsync(final CreateProjectRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateProjectRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateProjectResult call() throws Exception {
CreateProjectResult result = null;
try {
result = executeCreateProject(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 createRemoteAccessSessionAsync(CreateRemoteAccessSessionRequest request) {
return createRemoteAccessSessionAsync(request, null);
}
@Override
public java.util.concurrent.Future createRemoteAccessSessionAsync(final CreateRemoteAccessSessionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRemoteAccessSessionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRemoteAccessSessionResult call() throws Exception {
CreateRemoteAccessSessionResult result = null;
try {
result = executeCreateRemoteAccessSession(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 createTestGridProjectAsync(CreateTestGridProjectRequest request) {
return createTestGridProjectAsync(request, null);
}
@Override
public java.util.concurrent.Future createTestGridProjectAsync(final CreateTestGridProjectRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTestGridProjectRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTestGridProjectResult call() throws Exception {
CreateTestGridProjectResult result = null;
try {
result = executeCreateTestGridProject(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 createTestGridUrlAsync(CreateTestGridUrlRequest request) {
return createTestGridUrlAsync(request, null);
}
@Override
public java.util.concurrent.Future createTestGridUrlAsync(final CreateTestGridUrlRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTestGridUrlRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTestGridUrlResult call() throws Exception {
CreateTestGridUrlResult result = null;
try {
result = executeCreateTestGridUrl(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 createUploadAsync(CreateUploadRequest request) {
return createUploadAsync(request, null);
}
@Override
public java.util.concurrent.Future createUploadAsync(final CreateUploadRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateUploadRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateUploadResult call() throws Exception {
CreateUploadResult result = null;
try {
result = executeCreateUpload(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 createVPCEConfigurationAsync(CreateVPCEConfigurationRequest request) {
return createVPCEConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future createVPCEConfigurationAsync(final CreateVPCEConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateVPCEConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateVPCEConfigurationResult call() throws Exception {
CreateVPCEConfigurationResult result = null;
try {
result = executeCreateVPCEConfiguration(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 deleteDevicePoolAsync(DeleteDevicePoolRequest request) {
return deleteDevicePoolAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDevicePoolAsync(final DeleteDevicePoolRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDevicePoolRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDevicePoolResult call() throws Exception {
DeleteDevicePoolResult result = null;
try {
result = executeDeleteDevicePool(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 deleteInstanceProfileAsync(DeleteInstanceProfileRequest request) {
return deleteInstanceProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteInstanceProfileAsync(final DeleteInstanceProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteInstanceProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteInstanceProfileResult call() throws Exception {
DeleteInstanceProfileResult result = null;
try {
result = executeDeleteInstanceProfile(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 deleteNetworkProfileAsync(DeleteNetworkProfileRequest request) {
return deleteNetworkProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteNetworkProfileAsync(final DeleteNetworkProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteNetworkProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteNetworkProfileResult call() throws Exception {
DeleteNetworkProfileResult result = null;
try {
result = executeDeleteNetworkProfile(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 deleteProjectAsync(DeleteProjectRequest request) {
return deleteProjectAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteProjectAsync(final DeleteProjectRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteProjectRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteProjectResult call() throws Exception {
DeleteProjectResult result = null;
try {
result = executeDeleteProject(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 deleteRemoteAccessSessionAsync(DeleteRemoteAccessSessionRequest request) {
return deleteRemoteAccessSessionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRemoteAccessSessionAsync(final DeleteRemoteAccessSessionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRemoteAccessSessionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRemoteAccessSessionResult call() throws Exception {
DeleteRemoteAccessSessionResult result = null;
try {
result = executeDeleteRemoteAccessSession(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 deleteRunAsync(DeleteRunRequest request) {
return deleteRunAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRunAsync(final DeleteRunRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRunRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRunResult call() throws Exception {
DeleteRunResult result = null;
try {
result = executeDeleteRun(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 deleteTestGridProjectAsync(DeleteTestGridProjectRequest request) {
return deleteTestGridProjectAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTestGridProjectAsync(final DeleteTestGridProjectRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTestGridProjectRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTestGridProjectResult call() throws Exception {
DeleteTestGridProjectResult result = null;
try {
result = executeDeleteTestGridProject(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 deleteUploadAsync(DeleteUploadRequest request) {
return deleteUploadAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteUploadAsync(final DeleteUploadRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteUploadRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteUploadResult call() throws Exception {
DeleteUploadResult result = null;
try {
result = executeDeleteUpload(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 deleteVPCEConfigurationAsync(DeleteVPCEConfigurationRequest request) {
return deleteVPCEConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteVPCEConfigurationAsync(final DeleteVPCEConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteVPCEConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteVPCEConfigurationResult call() throws Exception {
DeleteVPCEConfigurationResult result = null;
try {
result = executeDeleteVPCEConfiguration(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 getAccountSettingsAsync(GetAccountSettingsRequest request) {
return getAccountSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccountSettingsAsync(final GetAccountSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccountSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccountSettingsResult call() throws Exception {
GetAccountSettingsResult result = null;
try {
result = executeGetAccountSettings(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 getDeviceAsync(GetDeviceRequest request) {
return getDeviceAsync(request, null);
}
@Override
public java.util.concurrent.Future getDeviceAsync(final GetDeviceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetDeviceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetDeviceResult call() throws Exception {
GetDeviceResult result = null;
try {
result = executeGetDevice(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 getDeviceInstanceAsync(GetDeviceInstanceRequest request) {
return getDeviceInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future getDeviceInstanceAsync(final GetDeviceInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetDeviceInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetDeviceInstanceResult call() throws Exception {
GetDeviceInstanceResult result = null;
try {
result = executeGetDeviceInstance(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 getDevicePoolAsync(GetDevicePoolRequest request) {
return getDevicePoolAsync(request, null);
}
@Override
public java.util.concurrent.Future getDevicePoolAsync(final GetDevicePoolRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetDevicePoolRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetDevicePoolResult call() throws Exception {
GetDevicePoolResult result = null;
try {
result = executeGetDevicePool(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 getDevicePoolCompatibilityAsync(GetDevicePoolCompatibilityRequest request) {
return getDevicePoolCompatibilityAsync(request, null);
}
@Override
public java.util.concurrent.Future getDevicePoolCompatibilityAsync(final GetDevicePoolCompatibilityRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetDevicePoolCompatibilityRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetDevicePoolCompatibilityResult call() throws Exception {
GetDevicePoolCompatibilityResult result = null;
try {
result = executeGetDevicePoolCompatibility(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 getInstanceProfileAsync(GetInstanceProfileRequest request) {
return getInstanceProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future getInstanceProfileAsync(final GetInstanceProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetInstanceProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetInstanceProfileResult call() throws Exception {
GetInstanceProfileResult result = null;
try {
result = executeGetInstanceProfile(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 getJobAsync(GetJobRequest request) {
return getJobAsync(request, null);
}
@Override
public java.util.concurrent.Future getJobAsync(final GetJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetJobResult call() throws Exception {
GetJobResult result = null;
try {
result = executeGetJob(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 getNetworkProfileAsync(GetNetworkProfileRequest request) {
return getNetworkProfileAsync(request, null);
}
@Override
public java.util.concurrent.Future getNetworkProfileAsync(final GetNetworkProfileRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetNetworkProfileRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetNetworkProfileResult call() throws Exception {
GetNetworkProfileResult result = null;
try {
result = executeGetNetworkProfile(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 getOfferingStatusAsync(GetOfferingStatusRequest request) {
return getOfferingStatusAsync(request, null);
}
@Override
public java.util.concurrent.Future getOfferingStatusAsync(final GetOfferingStatusRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetOfferingStatusRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetOfferingStatusResult call() throws Exception {
GetOfferingStatusResult result = null;
try {
result = executeGetOfferingStatus(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 getProjectAsync(GetProjectRequest request) {
return getProjectAsync(request, null);
}
@Override
public java.util.concurrent.Future getProjectAsync(final GetProjectRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetProjectRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetProjectResult call() throws Exception {
GetProjectResult result = null;
try {
result = executeGetProject(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 getRemoteAccessSessionAsync(GetRemoteAccessSessionRequest request) {
return getRemoteAccessSessionAsync(request, null);
}
@Override
public java.util.concurrent.Future getRemoteAccessSessionAsync(final GetRemoteAccessSessionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRemoteAccessSessionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRemoteAccessSessionResult call() throws Exception {
GetRemoteAccessSessionResult result = null;
try {
result = executeGetRemoteAccessSession(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 getRunAsync(GetRunRequest request) {
return getRunAsync(request, null);
}
@Override
public java.util.concurrent.Future getRunAsync(final GetRunRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetRunRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetRunResult call() throws Exception {
GetRunResult result = null;
try {
result = executeGetRun(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 getSuiteAsync(GetSuiteRequest request) {
return getSuiteAsync(request, null);
}
@Override
public java.util.concurrent.Future getSuiteAsync(final GetSuiteRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetSuiteRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetSuiteResult call() throws Exception {
GetSuiteResult result = null;
try {
result = executeGetSuite(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 getTestAsync(GetTestRequest request) {
return getTestAsync(request, null);
}
@Override
public java.util.concurrent.Future getTestAsync(final GetTestRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTestRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTestResult call() throws Exception {
GetTestResult result = null;
try {
result = executeGetTest(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 getTestGridProjectAsync(GetTestGridProjectRequest request) {
return getTestGridProjectAsync(request, null);
}
@Override
public java.util.concurrent.Future getTestGridProjectAsync(final GetTestGridProjectRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTestGridProjectRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTestGridProjectResult call() throws Exception {
GetTestGridProjectResult result = null;
try {
result = executeGetTestGridProject(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 getTestGridSessionAsync(GetTestGridSessionRequest request) {
return getTestGridSessionAsync(request, null);
}
@Override
public java.util.concurrent.Future getTestGridSessionAsync(final GetTestGridSessionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetTestGridSessionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetTestGridSessionResult call() throws Exception {
GetTestGridSessionResult result = null;
try {
result = executeGetTestGridSession(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 getUploadAsync(GetUploadRequest request) {
return getUploadAsync(request, null);
}
@Override
public java.util.concurrent.Future getUploadAsync(final GetUploadRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetUploadRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetUploadResult call() throws Exception {
GetUploadResult result = null;
try {
result = executeGetUpload(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 getVPCEConfigurationAsync(GetVPCEConfigurationRequest request) {
return getVPCEConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future getVPCEConfigurationAsync(final GetVPCEConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetVPCEConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetVPCEConfigurationResult call() throws Exception {
GetVPCEConfigurationResult result = null;
try {
result = executeGetVPCEConfiguration(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 installToRemoteAccessSessionAsync(InstallToRemoteAccessSessionRequest request) {
return installToRemoteAccessSessionAsync(request, null);
}
@Override
public java.util.concurrent.Future installToRemoteAccessSessionAsync(final InstallToRemoteAccessSessionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final InstallToRemoteAccessSessionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public InstallToRemoteAccessSessionResult call() throws Exception {
InstallToRemoteAccessSessionResult result = null;
try {
result = executeInstallToRemoteAccessSession(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 listArtifactsAsync(ListArtifactsRequest request) {
return listArtifactsAsync(request, null);
}
@Override
public java.util.concurrent.Future listArtifactsAsync(final ListArtifactsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListArtifactsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListArtifactsResult call() throws Exception {
ListArtifactsResult result = null;
try {
result = executeListArtifacts(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 listDeviceInstancesAsync(ListDeviceInstancesRequest request) {
return listDeviceInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future listDeviceInstancesAsync(final ListDeviceInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDeviceInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDeviceInstancesResult call() throws Exception {
ListDeviceInstancesResult result = null;
try {
result = executeListDeviceInstances(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 listDevicePoolsAsync(ListDevicePoolsRequest request) {
return listDevicePoolsAsync(request, null);
}
@Override
public java.util.concurrent.Future listDevicePoolsAsync(final ListDevicePoolsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDevicePoolsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDevicePoolsResult call() throws Exception {
ListDevicePoolsResult result = null;
try {
result = executeListDevicePools(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 listDevicesAsync(ListDevicesRequest request) {
return listDevicesAsync(request, null);
}
@Override
public java.util.concurrent.Future listDevicesAsync(final ListDevicesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDevicesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDevicesResult call() throws Exception {
ListDevicesResult result = null;
try {
result = executeListDevices(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 listInstanceProfilesAsync(ListInstanceProfilesRequest request) {
return listInstanceProfilesAsync(request, null);
}
@Override
public java.util.concurrent.Future listInstanceProfilesAsync(final ListInstanceProfilesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListInstanceProfilesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListInstanceProfilesResult call() throws Exception {
ListInstanceProfilesResult result = null;
try {
result = executeListInstanceProfiles(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 listJobsAsync(ListJobsRequest request) {
return listJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future listJobsAsync(final ListJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListJobsResult call() throws Exception {
ListJobsResult result = null;
try {
result = executeListJobs(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 listNetworkProfilesAsync(ListNetworkProfilesRequest request) {
return listNetworkProfilesAsync(request, null);
}
@Override
public java.util.concurrent.Future listNetworkProfilesAsync(final ListNetworkProfilesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListNetworkProfilesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListNetworkProfilesResult call() throws Exception {
ListNetworkProfilesResult result = null;
try {
result = executeListNetworkProfiles(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 listOfferingPromotionsAsync(ListOfferingPromotionsRequest request) {
return listOfferingPromotionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listOfferingPromotionsAsync(final ListOfferingPromotionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListOfferingPromotionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListOfferingPromotionsResult call() throws Exception {
ListOfferingPromotionsResult result = null;
try {
result = executeListOfferingPromotions(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 listOfferingTransactionsAsync(ListOfferingTransactionsRequest request) {
return listOfferingTransactionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listOfferingTransactionsAsync(final ListOfferingTransactionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListOfferingTransactionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListOfferingTransactionsResult call() throws Exception {
ListOfferingTransactionsResult result = null;
try {
result = executeListOfferingTransactions(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 listOfferingsAsync(ListOfferingsRequest request) {
return listOfferingsAsync(request, null);
}
@Override
public java.util.concurrent.Future listOfferingsAsync(final ListOfferingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListOfferingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListOfferingsResult call() throws Exception {
ListOfferingsResult result = null;
try {
result = executeListOfferings(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 listProjectsAsync(ListProjectsRequest request) {
return listProjectsAsync(request, null);
}
@Override
public java.util.concurrent.Future listProjectsAsync(final ListProjectsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListProjectsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListProjectsResult call() throws Exception {
ListProjectsResult result = null;
try {
result = executeListProjects(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 listRemoteAccessSessionsAsync(ListRemoteAccessSessionsRequest request) {
return listRemoteAccessSessionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listRemoteAccessSessionsAsync(final ListRemoteAccessSessionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRemoteAccessSessionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRemoteAccessSessionsResult call() throws Exception {
ListRemoteAccessSessionsResult result = null;
try {
result = executeListRemoteAccessSessions(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 listRunsAsync(ListRunsRequest request) {
return listRunsAsync(request, null);
}
@Override
public java.util.concurrent.Future listRunsAsync(final ListRunsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRunsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRunsResult call() throws Exception {
ListRunsResult result = null;
try {
result = executeListRuns(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 listSamplesAsync(ListSamplesRequest request) {
return listSamplesAsync(request, null);
}
@Override
public java.util.concurrent.Future listSamplesAsync(final ListSamplesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListSamplesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListSamplesResult call() throws Exception {
ListSamplesResult result = null;
try {
result = executeListSamples(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 listSuitesAsync(ListSuitesRequest request) {
return listSuitesAsync(request, null);
}
@Override
public java.util.concurrent.Future listSuitesAsync(final ListSuitesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListSuitesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListSuitesResult call() throws Exception {
ListSuitesResult result = null;
try {
result = executeListSuites(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 listTestGridProjectsAsync(ListTestGridProjectsRequest request) {
return listTestGridProjectsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTestGridProjectsAsync(final ListTestGridProjectsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTestGridProjectsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTestGridProjectsResult call() throws Exception {
ListTestGridProjectsResult result = null;
try {
result = executeListTestGridProjects(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 listTestGridSessionActionsAsync(ListTestGridSessionActionsRequest request) {
return listTestGridSessionActionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTestGridSessionActionsAsync(final ListTestGridSessionActionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTestGridSessionActionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTestGridSessionActionsResult call() throws Exception {
ListTestGridSessionActionsResult result = null;
try {
result = executeListTestGridSessionActions(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 listTestGridSessionArtifactsAsync(ListTestGridSessionArtifactsRequest request) {
return listTestGridSessionArtifactsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTestGridSessionArtifactsAsync(final ListTestGridSessionArtifactsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTestGridSessionArtifactsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTestGridSessionArtifactsResult call() throws Exception {
ListTestGridSessionArtifactsResult result = null;
try {
result = executeListTestGridSessionArtifacts(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 listTestGridSessionsAsync(ListTestGridSessionsRequest request) {
return listTestGridSessionsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTestGridSessionsAsync(final ListTestGridSessionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTestGridSessionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTestGridSessionsResult call() throws Exception {
ListTestGridSessionsResult result = null;
try {
result = executeListTestGridSessions(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 listTestsAsync(ListTestsRequest request) {
return listTestsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTestsAsync(final ListTestsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTestsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTestsResult call() throws Exception {
ListTestsResult result = null;
try {
result = executeListTests(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 listUniqueProblemsAsync(ListUniqueProblemsRequest request) {
return listUniqueProblemsAsync(request, null);
}
@Override
public java.util.concurrent.Future listUniqueProblemsAsync(final ListUniqueProblemsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListUniqueProblemsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListUniqueProblemsResult call() throws Exception {
ListUniqueProblemsResult result = null;
try {
result = executeListUniqueProblems(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 listUploadsAsync(ListUploadsRequest request) {
return listUploadsAsync(request, null);
}
@Override
public java.util.concurrent.Future listUploadsAsync(final ListUploadsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListUploadsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListUploadsResult call() throws Exception {
ListUploadsResult result = null;
try {
result = executeListUploads(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 listVPCEConfigurationsAsync(ListVPCEConfigurationsRequest request) {
return listVPCEConfigurationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listVPCEConfigurationsAsync(final ListVPCEConfigurationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListVPCEConfigurationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListVPCEConfigurationsResult call() throws Exception {
ListVPCEConfigurationsResult result = null;
try {
result = executeListVPCEConfigurations(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 purchaseOfferingAsync(PurchaseOfferingRequest request) {
return purchaseOfferingAsync(request, null);
}
@Override
public java.util.concurrent.Future purchaseOfferingAsync(final PurchaseOfferingRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final PurchaseOfferingRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public PurchaseOfferingResult call() throws Exception {
PurchaseOfferingResult result = null;
try {
result = executePurchaseOffering(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 renewOfferingAsync(RenewOfferingRequest request) {
return renewOfferingAsync(request, null);
}
@Override
public java.util.concurrent.Future