com.amazonaws.services.rds.AmazonRDSAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-rds Show documentation
/*
* Copyright 2015-2020 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.rds;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.rds.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 Amazon RDS 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.
*
* Amazon Relational Database Service
*
*
*
* Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a
* relational database in the cloud. It provides cost-efficient, resizeable capacity for an industry-standard relational
* database and manages common database administration tasks, freeing up developers to focus on what makes their
* applications and businesses unique.
*
*
* Amazon RDS gives you access to the capabilities of a MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, Oracle, or
* Amazon Aurora database server. These capabilities mean that the code, applications, and tools you already use today
* with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your
* database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your
* DB instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web
* Services, there are no up-front investments, and you pay only for the resources you use.
*
*
* This interface reference for Amazon RDS contains documentation for a programming or command line interface you can
* use to manage Amazon RDS. Amazon RDS is asynchronous, which means that some interfaces might require techniques such
* as polling or callback functions to determine when a command has been applied. In this reference, the parameter
* descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the
* maintenance window. The reference structure is as follows, and we list following some related topics from the user
* guide.
*
*
* Amazon RDS API Reference
*
*
* -
*
* For the alphabetical list of API actions, see API Actions.
*
*
* -
*
* For the alphabetical list of data types, see Data Types.
*
*
* -
*
* For a list of common query parameters, see Common Parameters.
*
*
* -
*
* For descriptions of the error codes, see Common Errors.
*
*
*
*
* Amazon RDS User Guide
*
*
* -
*
* For a summary of the Amazon RDS interfaces, see Available RDS
* Interfaces.
*
*
* -
*
* For more information about how to use the Query API, see Using the Query API.
*
*
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonRDSAsyncClient extends AmazonRDSClient implements AmazonRDSAsync {
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 Amazon RDS. 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 AmazonRDSAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AmazonRDSAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS. 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 Amazon RDS (ex: proxy settings,
* retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonRDSAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonRDSAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS 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 AmazonRDSAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonRDSAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS 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 AmazonRDSAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRDSAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonRDSAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS 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 AmazonRDSAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRDSAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonRDSAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonRDSAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS 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 AmazonRDSAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonRDSAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS 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 AmazonRDSAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRDSAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonRDSAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS 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 AmazonRDSAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRDSAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonRDSAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS 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 AmazonRDSAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonRDSAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonRDSAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonRDSAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AmazonRDSAsyncClientBuilder asyncBuilder() {
return AmazonRDSAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonRDSAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon RDS using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AmazonRDSAsyncClient(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 addRoleToDBClusterAsync(AddRoleToDBClusterRequest request) {
return addRoleToDBClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future addRoleToDBClusterAsync(final AddRoleToDBClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddRoleToDBClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddRoleToDBClusterResult call() throws Exception {
AddRoleToDBClusterResult result = null;
try {
result = executeAddRoleToDBCluster(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 addRoleToDBInstanceAsync(AddRoleToDBInstanceRequest request) {
return addRoleToDBInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future addRoleToDBInstanceAsync(final AddRoleToDBInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddRoleToDBInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddRoleToDBInstanceResult call() throws Exception {
AddRoleToDBInstanceResult result = null;
try {
result = executeAddRoleToDBInstance(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 addSourceIdentifierToSubscriptionAsync(AddSourceIdentifierToSubscriptionRequest request) {
return addSourceIdentifierToSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future addSourceIdentifierToSubscriptionAsync(final AddSourceIdentifierToSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddSourceIdentifierToSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public EventSubscription call() throws Exception {
EventSubscription result = null;
try {
result = executeAddSourceIdentifierToSubscription(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 addTagsToResourceAsync(AddTagsToResourceRequest request) {
return addTagsToResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future addTagsToResourceAsync(final AddTagsToResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddTagsToResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddTagsToResourceResult call() throws Exception {
AddTagsToResourceResult result = null;
try {
result = executeAddTagsToResource(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 applyPendingMaintenanceActionAsync(ApplyPendingMaintenanceActionRequest request) {
return applyPendingMaintenanceActionAsync(request, null);
}
@Override
public java.util.concurrent.Future applyPendingMaintenanceActionAsync(
final ApplyPendingMaintenanceActionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ApplyPendingMaintenanceActionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ResourcePendingMaintenanceActions call() throws Exception {
ResourcePendingMaintenanceActions result = null;
try {
result = executeApplyPendingMaintenanceAction(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 authorizeDBSecurityGroupIngressAsync(AuthorizeDBSecurityGroupIngressRequest request) {
return authorizeDBSecurityGroupIngressAsync(request, null);
}
@Override
public java.util.concurrent.Future authorizeDBSecurityGroupIngressAsync(final AuthorizeDBSecurityGroupIngressRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AuthorizeDBSecurityGroupIngressRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBSecurityGroup call() throws Exception {
DBSecurityGroup result = null;
try {
result = executeAuthorizeDBSecurityGroupIngress(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 backtrackDBClusterAsync(BacktrackDBClusterRequest request) {
return backtrackDBClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future backtrackDBClusterAsync(final BacktrackDBClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BacktrackDBClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BacktrackDBClusterResult call() throws Exception {
BacktrackDBClusterResult result = null;
try {
result = executeBacktrackDBCluster(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 cancelExportTaskAsync(CancelExportTaskRequest request) {
return cancelExportTaskAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelExportTaskAsync(final CancelExportTaskRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelExportTaskRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelExportTaskResult call() throws Exception {
CancelExportTaskResult result = null;
try {
result = executeCancelExportTask(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 copyDBClusterParameterGroupAsync(CopyDBClusterParameterGroupRequest request) {
return copyDBClusterParameterGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future copyDBClusterParameterGroupAsync(final CopyDBClusterParameterGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CopyDBClusterParameterGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBClusterParameterGroup call() throws Exception {
DBClusterParameterGroup result = null;
try {
result = executeCopyDBClusterParameterGroup(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 copyDBClusterSnapshotAsync(CopyDBClusterSnapshotRequest request) {
return copyDBClusterSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future copyDBClusterSnapshotAsync(final CopyDBClusterSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CopyDBClusterSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBClusterSnapshot call() throws Exception {
DBClusterSnapshot result = null;
try {
result = executeCopyDBClusterSnapshot(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 copyDBParameterGroupAsync(CopyDBParameterGroupRequest request) {
return copyDBParameterGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future copyDBParameterGroupAsync(final CopyDBParameterGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CopyDBParameterGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBParameterGroup call() throws Exception {
DBParameterGroup result = null;
try {
result = executeCopyDBParameterGroup(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 copyDBSnapshotAsync(CopyDBSnapshotRequest request) {
return copyDBSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future copyDBSnapshotAsync(final CopyDBSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CopyDBSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBSnapshot call() throws Exception {
DBSnapshot result = null;
try {
result = executeCopyDBSnapshot(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 copyOptionGroupAsync(CopyOptionGroupRequest request) {
return copyOptionGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future copyOptionGroupAsync(final CopyOptionGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CopyOptionGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public OptionGroup call() throws Exception {
OptionGroup result = null;
try {
result = executeCopyOptionGroup(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 createCustomAvailabilityZoneAsync(CreateCustomAvailabilityZoneRequest request) {
return createCustomAvailabilityZoneAsync(request, null);
}
@Override
public java.util.concurrent.Future createCustomAvailabilityZoneAsync(final CreateCustomAvailabilityZoneRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateCustomAvailabilityZoneRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CustomAvailabilityZone call() throws Exception {
CustomAvailabilityZone result = null;
try {
result = executeCreateCustomAvailabilityZone(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 createDBClusterAsync(CreateDBClusterRequest request) {
return createDBClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBClusterAsync(final CreateDBClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBCluster call() throws Exception {
DBCluster result = null;
try {
result = executeCreateDBCluster(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 createDBClusterEndpointAsync(CreateDBClusterEndpointRequest request) {
return createDBClusterEndpointAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBClusterEndpointAsync(final CreateDBClusterEndpointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBClusterEndpointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDBClusterEndpointResult call() throws Exception {
CreateDBClusterEndpointResult result = null;
try {
result = executeCreateDBClusterEndpoint(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 createDBClusterParameterGroupAsync(CreateDBClusterParameterGroupRequest request) {
return createDBClusterParameterGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBClusterParameterGroupAsync(final CreateDBClusterParameterGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBClusterParameterGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBClusterParameterGroup call() throws Exception {
DBClusterParameterGroup result = null;
try {
result = executeCreateDBClusterParameterGroup(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 createDBClusterSnapshotAsync(CreateDBClusterSnapshotRequest request) {
return createDBClusterSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBClusterSnapshotAsync(final CreateDBClusterSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBClusterSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBClusterSnapshot call() throws Exception {
DBClusterSnapshot result = null;
try {
result = executeCreateDBClusterSnapshot(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 createDBInstanceAsync(CreateDBInstanceRequest request) {
return createDBInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBInstanceAsync(final CreateDBInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBInstance call() throws Exception {
DBInstance result = null;
try {
result = executeCreateDBInstance(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 createDBInstanceReadReplicaAsync(CreateDBInstanceReadReplicaRequest request) {
return createDBInstanceReadReplicaAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBInstanceReadReplicaAsync(final CreateDBInstanceReadReplicaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBInstanceReadReplicaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBInstance call() throws Exception {
DBInstance result = null;
try {
result = executeCreateDBInstanceReadReplica(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 createDBParameterGroupAsync(CreateDBParameterGroupRequest request) {
return createDBParameterGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBParameterGroupAsync(final CreateDBParameterGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBParameterGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBParameterGroup call() throws Exception {
DBParameterGroup result = null;
try {
result = executeCreateDBParameterGroup(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 createDBProxyAsync(CreateDBProxyRequest request) {
return createDBProxyAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBProxyAsync(final CreateDBProxyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBProxyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDBProxyResult call() throws Exception {
CreateDBProxyResult result = null;
try {
result = executeCreateDBProxy(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 createDBSecurityGroupAsync(CreateDBSecurityGroupRequest request) {
return createDBSecurityGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBSecurityGroupAsync(final CreateDBSecurityGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBSecurityGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBSecurityGroup call() throws Exception {
DBSecurityGroup result = null;
try {
result = executeCreateDBSecurityGroup(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 createDBSnapshotAsync(CreateDBSnapshotRequest request) {
return createDBSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBSnapshotAsync(final CreateDBSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBSnapshot call() throws Exception {
DBSnapshot result = null;
try {
result = executeCreateDBSnapshot(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 createDBSubnetGroupAsync(CreateDBSubnetGroupRequest request) {
return createDBSubnetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createDBSubnetGroupAsync(final CreateDBSubnetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDBSubnetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBSubnetGroup call() throws Exception {
DBSubnetGroup result = null;
try {
result = executeCreateDBSubnetGroup(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 createEventSubscriptionAsync(CreateEventSubscriptionRequest request) {
return createEventSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future createEventSubscriptionAsync(final CreateEventSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateEventSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public EventSubscription call() throws Exception {
EventSubscription result = null;
try {
result = executeCreateEventSubscription(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 createGlobalClusterAsync(CreateGlobalClusterRequest request) {
return createGlobalClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future createGlobalClusterAsync(final CreateGlobalClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateGlobalClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GlobalCluster call() throws Exception {
GlobalCluster result = null;
try {
result = executeCreateGlobalCluster(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 createOptionGroupAsync(CreateOptionGroupRequest request) {
return createOptionGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createOptionGroupAsync(final CreateOptionGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateOptionGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public OptionGroup call() throws Exception {
OptionGroup result = null;
try {
result = executeCreateOptionGroup(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 deleteCustomAvailabilityZoneAsync(DeleteCustomAvailabilityZoneRequest request) {
return deleteCustomAvailabilityZoneAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteCustomAvailabilityZoneAsync(final DeleteCustomAvailabilityZoneRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteCustomAvailabilityZoneRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CustomAvailabilityZone call() throws Exception {
CustomAvailabilityZone result = null;
try {
result = executeDeleteCustomAvailabilityZone(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 deleteDBClusterAsync(DeleteDBClusterRequest request) {
return deleteDBClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBClusterAsync(final DeleteDBClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBCluster call() throws Exception {
DBCluster result = null;
try {
result = executeDeleteDBCluster(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 deleteDBClusterEndpointAsync(DeleteDBClusterEndpointRequest request) {
return deleteDBClusterEndpointAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBClusterEndpointAsync(final DeleteDBClusterEndpointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBClusterEndpointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDBClusterEndpointResult call() throws Exception {
DeleteDBClusterEndpointResult result = null;
try {
result = executeDeleteDBClusterEndpoint(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 deleteDBClusterParameterGroupAsync(DeleteDBClusterParameterGroupRequest request) {
return deleteDBClusterParameterGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBClusterParameterGroupAsync(
final DeleteDBClusterParameterGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBClusterParameterGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDBClusterParameterGroupResult call() throws Exception {
DeleteDBClusterParameterGroupResult result = null;
try {
result = executeDeleteDBClusterParameterGroup(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 deleteDBClusterSnapshotAsync(DeleteDBClusterSnapshotRequest request) {
return deleteDBClusterSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBClusterSnapshotAsync(final DeleteDBClusterSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBClusterSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBClusterSnapshot call() throws Exception {
DBClusterSnapshot result = null;
try {
result = executeDeleteDBClusterSnapshot(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 deleteDBInstanceAsync(DeleteDBInstanceRequest request) {
return deleteDBInstanceAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBInstanceAsync(final DeleteDBInstanceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBInstanceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBInstance call() throws Exception {
DBInstance result = null;
try {
result = executeDeleteDBInstance(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 deleteDBInstanceAutomatedBackupAsync(DeleteDBInstanceAutomatedBackupRequest request) {
return deleteDBInstanceAutomatedBackupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBInstanceAutomatedBackupAsync(final DeleteDBInstanceAutomatedBackupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBInstanceAutomatedBackupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBInstanceAutomatedBackup call() throws Exception {
DBInstanceAutomatedBackup result = null;
try {
result = executeDeleteDBInstanceAutomatedBackup(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 deleteDBParameterGroupAsync(DeleteDBParameterGroupRequest request) {
return deleteDBParameterGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBParameterGroupAsync(final DeleteDBParameterGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBParameterGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDBParameterGroupResult call() throws Exception {
DeleteDBParameterGroupResult result = null;
try {
result = executeDeleteDBParameterGroup(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 deleteDBProxyAsync(DeleteDBProxyRequest request) {
return deleteDBProxyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBProxyAsync(final DeleteDBProxyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBProxyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDBProxyResult call() throws Exception {
DeleteDBProxyResult result = null;
try {
result = executeDeleteDBProxy(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 deleteDBSecurityGroupAsync(DeleteDBSecurityGroupRequest request) {
return deleteDBSecurityGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBSecurityGroupAsync(final DeleteDBSecurityGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBSecurityGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDBSecurityGroupResult call() throws Exception {
DeleteDBSecurityGroupResult result = null;
try {
result = executeDeleteDBSecurityGroup(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 deleteDBSnapshotAsync(DeleteDBSnapshotRequest request) {
return deleteDBSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBSnapshotAsync(final DeleteDBSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBSnapshot call() throws Exception {
DBSnapshot result = null;
try {
result = executeDeleteDBSnapshot(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 deleteDBSubnetGroupAsync(DeleteDBSubnetGroupRequest request) {
return deleteDBSubnetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDBSubnetGroupAsync(final DeleteDBSubnetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDBSubnetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDBSubnetGroupResult call() throws Exception {
DeleteDBSubnetGroupResult result = null;
try {
result = executeDeleteDBSubnetGroup(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 deleteEventSubscriptionAsync(DeleteEventSubscriptionRequest request) {
return deleteEventSubscriptionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteEventSubscriptionAsync(final DeleteEventSubscriptionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteEventSubscriptionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public EventSubscription call() throws Exception {
EventSubscription result = null;
try {
result = executeDeleteEventSubscription(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 deleteGlobalClusterAsync(DeleteGlobalClusterRequest request) {
return deleteGlobalClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteGlobalClusterAsync(final DeleteGlobalClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteGlobalClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GlobalCluster call() throws Exception {
GlobalCluster result = null;
try {
result = executeDeleteGlobalCluster(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 deleteInstallationMediaAsync(DeleteInstallationMediaRequest request) {
return deleteInstallationMediaAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteInstallationMediaAsync(final DeleteInstallationMediaRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteInstallationMediaRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteInstallationMediaResult call() throws Exception {
DeleteInstallationMediaResult result = null;
try {
result = executeDeleteInstallationMedia(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 deleteOptionGroupAsync(DeleteOptionGroupRequest request) {
return deleteOptionGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteOptionGroupAsync(final DeleteOptionGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteOptionGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteOptionGroupResult call() throws Exception {
DeleteOptionGroupResult result = null;
try {
result = executeDeleteOptionGroup(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 deregisterDBProxyTargetsAsync(DeregisterDBProxyTargetsRequest request) {
return deregisterDBProxyTargetsAsync(request, null);
}
@Override
public java.util.concurrent.Future deregisterDBProxyTargetsAsync(final DeregisterDBProxyTargetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterDBProxyTargetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterDBProxyTargetsResult call() throws Exception {
DeregisterDBProxyTargetsResult result = null;
try {
result = executeDeregisterDBProxyTargets(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 describeAccountAttributesAsync(DescribeAccountAttributesRequest request) {
return describeAccountAttributesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAccountAttributesAsync(final DescribeAccountAttributesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAccountAttributesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAccountAttributesResult call() throws Exception {
DescribeAccountAttributesResult result = null;
try {
result = executeDescribeAccountAttributes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeAccountAttributes operation.
*
* @see #describeAccountAttributesAsync(DescribeAccountAttributesRequest)
*/
@Override
public java.util.concurrent.Future describeAccountAttributesAsync() {
return describeAccountAttributesAsync(new DescribeAccountAttributesRequest());
}
/**
* Simplified method form for invoking the DescribeAccountAttributes operation with an AsyncHandler.
*
* @see #describeAccountAttributesAsync(DescribeAccountAttributesRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeAccountAttributesAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeAccountAttributesAsync(new DescribeAccountAttributesRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeCertificatesAsync(DescribeCertificatesRequest request) {
return describeCertificatesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeCertificatesAsync(final DescribeCertificatesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeCertificatesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeCertificatesResult call() throws Exception {
DescribeCertificatesResult result = null;
try {
result = executeDescribeCertificates(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeCertificates operation.
*
* @see #describeCertificatesAsync(DescribeCertificatesRequest)
*/
@Override
public java.util.concurrent.Future describeCertificatesAsync() {
return describeCertificatesAsync(new DescribeCertificatesRequest());
}
/**
* Simplified method form for invoking the DescribeCertificates operation with an AsyncHandler.
*
* @see #describeCertificatesAsync(DescribeCertificatesRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeCertificatesAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeCertificatesAsync(new DescribeCertificatesRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeCustomAvailabilityZonesAsync(
DescribeCustomAvailabilityZonesRequest request) {
return describeCustomAvailabilityZonesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeCustomAvailabilityZonesAsync(
final DescribeCustomAvailabilityZonesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeCustomAvailabilityZonesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeCustomAvailabilityZonesResult call() throws Exception {
DescribeCustomAvailabilityZonesResult result = null;
try {
result = executeDescribeCustomAvailabilityZones(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 describeDBClusterBacktracksAsync(DescribeDBClusterBacktracksRequest request) {
return describeDBClusterBacktracksAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBClusterBacktracksAsync(final DescribeDBClusterBacktracksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBClusterBacktracksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDBClusterBacktracksResult call() throws Exception {
DescribeDBClusterBacktracksResult result = null;
try {
result = executeDescribeDBClusterBacktracks(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 describeDBClusterEndpointsAsync(DescribeDBClusterEndpointsRequest request) {
return describeDBClusterEndpointsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBClusterEndpointsAsync(final DescribeDBClusterEndpointsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBClusterEndpointsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDBClusterEndpointsResult call() throws Exception {
DescribeDBClusterEndpointsResult result = null;
try {
result = executeDescribeDBClusterEndpoints(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 describeDBClusterParameterGroupsAsync(
DescribeDBClusterParameterGroupsRequest request) {
return describeDBClusterParameterGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBClusterParameterGroupsAsync(
final DescribeDBClusterParameterGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBClusterParameterGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDBClusterParameterGroupsResult call() throws Exception {
DescribeDBClusterParameterGroupsResult result = null;
try {
result = executeDescribeDBClusterParameterGroups(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeDBClusterParameterGroups operation.
*
* @see #describeDBClusterParameterGroupsAsync(DescribeDBClusterParameterGroupsRequest)
*/
@Override
public java.util.concurrent.Future describeDBClusterParameterGroupsAsync() {
return describeDBClusterParameterGroupsAsync(new DescribeDBClusterParameterGroupsRequest());
}
/**
* Simplified method form for invoking the DescribeDBClusterParameterGroups operation with an AsyncHandler.
*
* @see #describeDBClusterParameterGroupsAsync(DescribeDBClusterParameterGroupsRequest,
* com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeDBClusterParameterGroupsAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeDBClusterParameterGroupsAsync(new DescribeDBClusterParameterGroupsRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeDBClusterParametersAsync(DescribeDBClusterParametersRequest request) {
return describeDBClusterParametersAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBClusterParametersAsync(final DescribeDBClusterParametersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBClusterParametersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDBClusterParametersResult call() throws Exception {
DescribeDBClusterParametersResult result = null;
try {
result = executeDescribeDBClusterParameters(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 describeDBClusterSnapshotAttributesAsync(
DescribeDBClusterSnapshotAttributesRequest request) {
return describeDBClusterSnapshotAttributesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBClusterSnapshotAttributesAsync(
final DescribeDBClusterSnapshotAttributesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBClusterSnapshotAttributesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DBClusterSnapshotAttributesResult call() throws Exception {
DBClusterSnapshotAttributesResult result = null;
try {
result = executeDescribeDBClusterSnapshotAttributes(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 describeDBClusterSnapshotsAsync(DescribeDBClusterSnapshotsRequest request) {
return describeDBClusterSnapshotsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBClusterSnapshotsAsync(final DescribeDBClusterSnapshotsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBClusterSnapshotsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDBClusterSnapshotsResult call() throws Exception {
DescribeDBClusterSnapshotsResult result = null;
try {
result = executeDescribeDBClusterSnapshots(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeDBClusterSnapshots operation.
*
* @see #describeDBClusterSnapshotsAsync(DescribeDBClusterSnapshotsRequest)
*/
@Override
public java.util.concurrent.Future describeDBClusterSnapshotsAsync() {
return describeDBClusterSnapshotsAsync(new DescribeDBClusterSnapshotsRequest());
}
/**
* Simplified method form for invoking the DescribeDBClusterSnapshots operation with an AsyncHandler.
*
* @see #describeDBClusterSnapshotsAsync(DescribeDBClusterSnapshotsRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeDBClusterSnapshotsAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeDBClusterSnapshotsAsync(new DescribeDBClusterSnapshotsRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeDBClustersAsync(DescribeDBClustersRequest request) {
return describeDBClustersAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBClustersAsync(final DescribeDBClustersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBClustersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDBClustersResult call() throws Exception {
DescribeDBClustersResult result = null;
try {
result = executeDescribeDBClusters(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeDBClusters operation.
*
* @see #describeDBClustersAsync(DescribeDBClustersRequest)
*/
@Override
public java.util.concurrent.Future describeDBClustersAsync() {
return describeDBClustersAsync(new DescribeDBClustersRequest());
}
/**
* Simplified method form for invoking the DescribeDBClusters operation with an AsyncHandler.
*
* @see #describeDBClustersAsync(DescribeDBClustersRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeDBClustersAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeDBClustersAsync(new DescribeDBClustersRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeDBEngineVersionsAsync(DescribeDBEngineVersionsRequest request) {
return describeDBEngineVersionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBEngineVersionsAsync(final DescribeDBEngineVersionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBEngineVersionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDBEngineVersionsResult call() throws Exception {
DescribeDBEngineVersionsResult result = null;
try {
result = executeDescribeDBEngineVersions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeDBEngineVersions operation.
*
* @see #describeDBEngineVersionsAsync(DescribeDBEngineVersionsRequest)
*/
@Override
public java.util.concurrent.Future describeDBEngineVersionsAsync() {
return describeDBEngineVersionsAsync(new DescribeDBEngineVersionsRequest());
}
/**
* Simplified method form for invoking the DescribeDBEngineVersions operation with an AsyncHandler.
*
* @see #describeDBEngineVersionsAsync(DescribeDBEngineVersionsRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeDBEngineVersionsAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeDBEngineVersionsAsync(new DescribeDBEngineVersionsRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeDBInstanceAutomatedBackupsAsync(
DescribeDBInstanceAutomatedBackupsRequest request) {
return describeDBInstanceAutomatedBackupsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBInstanceAutomatedBackupsAsync(
final DescribeDBInstanceAutomatedBackupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBInstanceAutomatedBackupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDBInstanceAutomatedBackupsResult call() throws Exception {
DescribeDBInstanceAutomatedBackupsResult result = null;
try {
result = executeDescribeDBInstanceAutomatedBackups(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 describeDBInstancesAsync(DescribeDBInstancesRequest request) {
return describeDBInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDBInstancesAsync(final DescribeDBInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDBInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable