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

com.amazonaws.services.rds.AmazonRDSAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2013-2018 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, resizable 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. Note that 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 *

* */ @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) { super(asyncClientParams); this.executorService = asyncClientParams.getExecutor(); } /** * Returns the executor service used by this client to execute async requests. * * @return The executor service used by this client to execute async requests. */ public ExecutorService getExecutorService() { return executorService; } @Override public java.util.concurrent.Future 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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() { @Override public DescribeDBInstancesResult call() throws Exception { DescribeDBInstancesResult result = null; try { result = executeDescribeDBInstances(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 DescribeDBInstances operation. * * @see #describeDBInstancesAsync(DescribeDBInstancesRequest) */ @Override public java.util.concurrent.Future describeDBInstancesAsync() { return describeDBInstancesAsync(new DescribeDBInstancesRequest()); } /** * Simplified method form for invoking the DescribeDBInstances operation with an AsyncHandler. * * @see #describeDBInstancesAsync(DescribeDBInstancesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeDBInstancesAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeDBInstancesAsync(new DescribeDBInstancesRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeDBLogFilesAsync(DescribeDBLogFilesRequest request) { return describeDBLogFilesAsync(request, null); } @Override public java.util.concurrent.Future describeDBLogFilesAsync(final DescribeDBLogFilesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDBLogFilesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDBLogFilesResult call() throws Exception { DescribeDBLogFilesResult result = null; try { result = executeDescribeDBLogFiles(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeDBParameterGroupsAsync(DescribeDBParameterGroupsRequest request) { return describeDBParameterGroupsAsync(request, null); } @Override public java.util.concurrent.Future describeDBParameterGroupsAsync(final DescribeDBParameterGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDBParameterGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDBParameterGroupsResult call() throws Exception { DescribeDBParameterGroupsResult result = null; try { result = executeDescribeDBParameterGroups(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 DescribeDBParameterGroups operation. * * @see #describeDBParameterGroupsAsync(DescribeDBParameterGroupsRequest) */ @Override public java.util.concurrent.Future describeDBParameterGroupsAsync() { return describeDBParameterGroupsAsync(new DescribeDBParameterGroupsRequest()); } /** * Simplified method form for invoking the DescribeDBParameterGroups operation with an AsyncHandler. * * @see #describeDBParameterGroupsAsync(DescribeDBParameterGroupsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeDBParameterGroupsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeDBParameterGroupsAsync(new DescribeDBParameterGroupsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeDBParametersAsync(DescribeDBParametersRequest request) { return describeDBParametersAsync(request, null); } @Override public java.util.concurrent.Future describeDBParametersAsync(final DescribeDBParametersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDBParametersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDBParametersResult call() throws Exception { DescribeDBParametersResult result = null; try { result = executeDescribeDBParameters(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeDBSecurityGroupsAsync(DescribeDBSecurityGroupsRequest request) { return describeDBSecurityGroupsAsync(request, null); } @Override public java.util.concurrent.Future describeDBSecurityGroupsAsync(final DescribeDBSecurityGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDBSecurityGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDBSecurityGroupsResult call() throws Exception { DescribeDBSecurityGroupsResult result = null; try { result = executeDescribeDBSecurityGroups(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 DescribeDBSecurityGroups operation. * * @see #describeDBSecurityGroupsAsync(DescribeDBSecurityGroupsRequest) */ @Override public java.util.concurrent.Future describeDBSecurityGroupsAsync() { return describeDBSecurityGroupsAsync(new DescribeDBSecurityGroupsRequest()); } /** * Simplified method form for invoking the DescribeDBSecurityGroups operation with an AsyncHandler. * * @see #describeDBSecurityGroupsAsync(DescribeDBSecurityGroupsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeDBSecurityGroupsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeDBSecurityGroupsAsync(new DescribeDBSecurityGroupsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeDBSnapshotAttributesAsync(DescribeDBSnapshotAttributesRequest request) { return describeDBSnapshotAttributesAsync(request, null); } @Override public java.util.concurrent.Future describeDBSnapshotAttributesAsync(final DescribeDBSnapshotAttributesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDBSnapshotAttributesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBSnapshotAttributesResult call() throws Exception { DBSnapshotAttributesResult result = null; try { result = executeDescribeDBSnapshotAttributes(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 DescribeDBSnapshotAttributes operation. * * @see #describeDBSnapshotAttributesAsync(DescribeDBSnapshotAttributesRequest) */ @Override public java.util.concurrent.Future describeDBSnapshotAttributesAsync() { return describeDBSnapshotAttributesAsync(new DescribeDBSnapshotAttributesRequest()); } /** * Simplified method form for invoking the DescribeDBSnapshotAttributes operation with an AsyncHandler. * * @see #describeDBSnapshotAttributesAsync(DescribeDBSnapshotAttributesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeDBSnapshotAttributesAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeDBSnapshotAttributesAsync(new DescribeDBSnapshotAttributesRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeDBSnapshotsAsync(DescribeDBSnapshotsRequest request) { return describeDBSnapshotsAsync(request, null); } @Override public java.util.concurrent.Future describeDBSnapshotsAsync(final DescribeDBSnapshotsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDBSnapshotsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDBSnapshotsResult call() throws Exception { DescribeDBSnapshotsResult result = null; try { result = executeDescribeDBSnapshots(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 DescribeDBSnapshots operation. * * @see #describeDBSnapshotsAsync(DescribeDBSnapshotsRequest) */ @Override public java.util.concurrent.Future describeDBSnapshotsAsync() { return describeDBSnapshotsAsync(new DescribeDBSnapshotsRequest()); } /** * Simplified method form for invoking the DescribeDBSnapshots operation with an AsyncHandler. * * @see #describeDBSnapshotsAsync(DescribeDBSnapshotsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeDBSnapshotsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeDBSnapshotsAsync(new DescribeDBSnapshotsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeDBSubnetGroupsAsync(DescribeDBSubnetGroupsRequest request) { return describeDBSubnetGroupsAsync(request, null); } @Override public java.util.concurrent.Future describeDBSubnetGroupsAsync(final DescribeDBSubnetGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeDBSubnetGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeDBSubnetGroupsResult call() throws Exception { DescribeDBSubnetGroupsResult result = null; try { result = executeDescribeDBSubnetGroups(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 DescribeDBSubnetGroups operation. * * @see #describeDBSubnetGroupsAsync(DescribeDBSubnetGroupsRequest) */ @Override public java.util.concurrent.Future describeDBSubnetGroupsAsync() { return describeDBSubnetGroupsAsync(new DescribeDBSubnetGroupsRequest()); } /** * Simplified method form for invoking the DescribeDBSubnetGroups operation with an AsyncHandler. * * @see #describeDBSubnetGroupsAsync(DescribeDBSubnetGroupsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeDBSubnetGroupsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeDBSubnetGroupsAsync(new DescribeDBSubnetGroupsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeEngineDefaultClusterParametersAsync(DescribeEngineDefaultClusterParametersRequest request) { return describeEngineDefaultClusterParametersAsync(request, null); } @Override public java.util.concurrent.Future describeEngineDefaultClusterParametersAsync(final DescribeEngineDefaultClusterParametersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeEngineDefaultClusterParametersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public EngineDefaults call() throws Exception { EngineDefaults result = null; try { result = executeDescribeEngineDefaultClusterParameters(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeEngineDefaultParametersAsync(DescribeEngineDefaultParametersRequest request) { return describeEngineDefaultParametersAsync(request, null); } @Override public java.util.concurrent.Future describeEngineDefaultParametersAsync(final DescribeEngineDefaultParametersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeEngineDefaultParametersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public EngineDefaults call() throws Exception { EngineDefaults result = null; try { result = executeDescribeEngineDefaultParameters(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeEventCategoriesAsync(DescribeEventCategoriesRequest request) { return describeEventCategoriesAsync(request, null); } @Override public java.util.concurrent.Future describeEventCategoriesAsync(final DescribeEventCategoriesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeEventCategoriesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeEventCategoriesResult call() throws Exception { DescribeEventCategoriesResult result = null; try { result = executeDescribeEventCategories(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 DescribeEventCategories operation. * * @see #describeEventCategoriesAsync(DescribeEventCategoriesRequest) */ @Override public java.util.concurrent.Future describeEventCategoriesAsync() { return describeEventCategoriesAsync(new DescribeEventCategoriesRequest()); } /** * Simplified method form for invoking the DescribeEventCategories operation with an AsyncHandler. * * @see #describeEventCategoriesAsync(DescribeEventCategoriesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeEventCategoriesAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeEventCategoriesAsync(new DescribeEventCategoriesRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeEventSubscriptionsAsync(DescribeEventSubscriptionsRequest request) { return describeEventSubscriptionsAsync(request, null); } @Override public java.util.concurrent.Future describeEventSubscriptionsAsync(final DescribeEventSubscriptionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeEventSubscriptionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeEventSubscriptionsResult call() throws Exception { DescribeEventSubscriptionsResult result = null; try { result = executeDescribeEventSubscriptions(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 DescribeEventSubscriptions operation. * * @see #describeEventSubscriptionsAsync(DescribeEventSubscriptionsRequest) */ @Override public java.util.concurrent.Future describeEventSubscriptionsAsync() { return describeEventSubscriptionsAsync(new DescribeEventSubscriptionsRequest()); } /** * Simplified method form for invoking the DescribeEventSubscriptions operation with an AsyncHandler. * * @see #describeEventSubscriptionsAsync(DescribeEventSubscriptionsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeEventSubscriptionsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeEventSubscriptionsAsync(new DescribeEventSubscriptionsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeEventsAsync(DescribeEventsRequest request) { return describeEventsAsync(request, null); } @Override public java.util.concurrent.Future describeEventsAsync(final DescribeEventsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeEventsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeEventsResult call() throws Exception { DescribeEventsResult result = null; try { result = executeDescribeEvents(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 DescribeEvents operation. * * @see #describeEventsAsync(DescribeEventsRequest) */ @Override public java.util.concurrent.Future describeEventsAsync() { return describeEventsAsync(new DescribeEventsRequest()); } /** * Simplified method form for invoking the DescribeEvents operation with an AsyncHandler. * * @see #describeEventsAsync(DescribeEventsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeEventsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeEventsAsync(new DescribeEventsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeOptionGroupOptionsAsync(DescribeOptionGroupOptionsRequest request) { return describeOptionGroupOptionsAsync(request, null); } @Override public java.util.concurrent.Future describeOptionGroupOptionsAsync(final DescribeOptionGroupOptionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeOptionGroupOptionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeOptionGroupOptionsResult call() throws Exception { DescribeOptionGroupOptionsResult result = null; try { result = executeDescribeOptionGroupOptions(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeOptionGroupsAsync(DescribeOptionGroupsRequest request) { return describeOptionGroupsAsync(request, null); } @Override public java.util.concurrent.Future describeOptionGroupsAsync(final DescribeOptionGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeOptionGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeOptionGroupsResult call() throws Exception { DescribeOptionGroupsResult result = null; try { result = executeDescribeOptionGroups(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 DescribeOptionGroups operation. * * @see #describeOptionGroupsAsync(DescribeOptionGroupsRequest) */ @Override public java.util.concurrent.Future describeOptionGroupsAsync() { return describeOptionGroupsAsync(new DescribeOptionGroupsRequest()); } /** * Simplified method form for invoking the DescribeOptionGroups operation with an AsyncHandler. * * @see #describeOptionGroupsAsync(DescribeOptionGroupsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeOptionGroupsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeOptionGroupsAsync(new DescribeOptionGroupsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeOrderableDBInstanceOptionsAsync( DescribeOrderableDBInstanceOptionsRequest request) { return describeOrderableDBInstanceOptionsAsync(request, null); } @Override public java.util.concurrent.Future describeOrderableDBInstanceOptionsAsync( final DescribeOrderableDBInstanceOptionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeOrderableDBInstanceOptionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeOrderableDBInstanceOptionsResult call() throws Exception { DescribeOrderableDBInstanceOptionsResult result = null; try { result = executeDescribeOrderableDBInstanceOptions(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describePendingMaintenanceActionsAsync( DescribePendingMaintenanceActionsRequest request) { return describePendingMaintenanceActionsAsync(request, null); } @Override public java.util.concurrent.Future describePendingMaintenanceActionsAsync( final DescribePendingMaintenanceActionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePendingMaintenanceActionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePendingMaintenanceActionsResult call() throws Exception { DescribePendingMaintenanceActionsResult result = null; try { result = executeDescribePendingMaintenanceActions(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 DescribePendingMaintenanceActions operation. * * @see #describePendingMaintenanceActionsAsync(DescribePendingMaintenanceActionsRequest) */ @Override public java.util.concurrent.Future describePendingMaintenanceActionsAsync() { return describePendingMaintenanceActionsAsync(new DescribePendingMaintenanceActionsRequest()); } /** * Simplified method form for invoking the DescribePendingMaintenanceActions operation with an AsyncHandler. * * @see #describePendingMaintenanceActionsAsync(DescribePendingMaintenanceActionsRequest, * com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describePendingMaintenanceActionsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describePendingMaintenanceActionsAsync(new DescribePendingMaintenanceActionsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeReservedDBInstancesAsync(DescribeReservedDBInstancesRequest request) { return describeReservedDBInstancesAsync(request, null); } @Override public java.util.concurrent.Future describeReservedDBInstancesAsync(final DescribeReservedDBInstancesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeReservedDBInstancesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeReservedDBInstancesResult call() throws Exception { DescribeReservedDBInstancesResult result = null; try { result = executeDescribeReservedDBInstances(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 DescribeReservedDBInstances operation. * * @see #describeReservedDBInstancesAsync(DescribeReservedDBInstancesRequest) */ @Override public java.util.concurrent.Future describeReservedDBInstancesAsync() { return describeReservedDBInstancesAsync(new DescribeReservedDBInstancesRequest()); } /** * Simplified method form for invoking the DescribeReservedDBInstances operation with an AsyncHandler. * * @see #describeReservedDBInstancesAsync(DescribeReservedDBInstancesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeReservedDBInstancesAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeReservedDBInstancesAsync(new DescribeReservedDBInstancesRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeReservedDBInstancesOfferingsAsync( DescribeReservedDBInstancesOfferingsRequest request) { return describeReservedDBInstancesOfferingsAsync(request, null); } @Override public java.util.concurrent.Future describeReservedDBInstancesOfferingsAsync( final DescribeReservedDBInstancesOfferingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeReservedDBInstancesOfferingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeReservedDBInstancesOfferingsResult call() throws Exception { DescribeReservedDBInstancesOfferingsResult result = null; try { result = executeDescribeReservedDBInstancesOfferings(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 DescribeReservedDBInstancesOfferings operation. * * @see #describeReservedDBInstancesOfferingsAsync(DescribeReservedDBInstancesOfferingsRequest) */ @Override public java.util.concurrent.Future describeReservedDBInstancesOfferingsAsync() { return describeReservedDBInstancesOfferingsAsync(new DescribeReservedDBInstancesOfferingsRequest()); } /** * Simplified method form for invoking the DescribeReservedDBInstancesOfferings operation with an AsyncHandler. * * @see #describeReservedDBInstancesOfferingsAsync(DescribeReservedDBInstancesOfferingsRequest, * com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future describeReservedDBInstancesOfferingsAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return describeReservedDBInstancesOfferingsAsync(new DescribeReservedDBInstancesOfferingsRequest(), asyncHandler); } @Override public java.util.concurrent.Future describeSourceRegionsAsync(DescribeSourceRegionsRequest request) { return describeSourceRegionsAsync(request, null); } @Override public java.util.concurrent.Future describeSourceRegionsAsync(final DescribeSourceRegionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeSourceRegionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeSourceRegionsResult call() throws Exception { DescribeSourceRegionsResult result = null; try { result = executeDescribeSourceRegions(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeValidDBInstanceModificationsAsync( DescribeValidDBInstanceModificationsRequest request) { return describeValidDBInstanceModificationsAsync(request, null); } @Override public java.util.concurrent.Future describeValidDBInstanceModificationsAsync( final DescribeValidDBInstanceModificationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeValidDBInstanceModificationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ValidDBInstanceModificationsMessage call() throws Exception { ValidDBInstanceModificationsMessage result = null; try { result = executeDescribeValidDBInstanceModifications(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future downloadDBLogFilePortionAsync(DownloadDBLogFilePortionRequest request) { return downloadDBLogFilePortionAsync(request, null); } @Override public java.util.concurrent.Future downloadDBLogFilePortionAsync(final DownloadDBLogFilePortionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DownloadDBLogFilePortionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DownloadDBLogFilePortionResult call() throws Exception { DownloadDBLogFilePortionResult result = null; try { result = executeDownloadDBLogFilePortion(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future failoverDBClusterAsync(FailoverDBClusterRequest request) { return failoverDBClusterAsync(request, null); } @Override public java.util.concurrent.Future failoverDBClusterAsync(final FailoverDBClusterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final FailoverDBClusterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBCluster call() throws Exception { DBCluster result = null; try { result = executeFailoverDBCluster(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 FailoverDBCluster operation. * * @see #failoverDBClusterAsync(FailoverDBClusterRequest) */ @Override public java.util.concurrent.Future failoverDBClusterAsync() { return failoverDBClusterAsync(new FailoverDBClusterRequest()); } /** * Simplified method form for invoking the FailoverDBCluster operation with an AsyncHandler. * * @see #failoverDBClusterAsync(FailoverDBClusterRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future failoverDBClusterAsync(com.amazonaws.handlers.AsyncHandler asyncHandler) { return failoverDBClusterAsync(new FailoverDBClusterRequest(), asyncHandler); } @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 modifyDBClusterAsync(ModifyDBClusterRequest request) { return modifyDBClusterAsync(request, null); } @Override public java.util.concurrent.Future modifyDBClusterAsync(final ModifyDBClusterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDBClusterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBCluster call() throws Exception { DBCluster result = null; try { result = executeModifyDBCluster(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyDBClusterParameterGroupAsync(ModifyDBClusterParameterGroupRequest request) { return modifyDBClusterParameterGroupAsync(request, null); } @Override public java.util.concurrent.Future modifyDBClusterParameterGroupAsync( final ModifyDBClusterParameterGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDBClusterParameterGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ModifyDBClusterParameterGroupResult call() throws Exception { ModifyDBClusterParameterGroupResult result = null; try { result = executeModifyDBClusterParameterGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyDBClusterSnapshotAttributeAsync(ModifyDBClusterSnapshotAttributeRequest request) { return modifyDBClusterSnapshotAttributeAsync(request, null); } @Override public java.util.concurrent.Future modifyDBClusterSnapshotAttributeAsync( final ModifyDBClusterSnapshotAttributeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDBClusterSnapshotAttributeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBClusterSnapshotAttributesResult call() throws Exception { DBClusterSnapshotAttributesResult result = null; try { result = executeModifyDBClusterSnapshotAttribute(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyDBInstanceAsync(ModifyDBInstanceRequest request) { return modifyDBInstanceAsync(request, null); } @Override public java.util.concurrent.Future modifyDBInstanceAsync(final ModifyDBInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDBInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBInstance call() throws Exception { DBInstance result = null; try { result = executeModifyDBInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyDBParameterGroupAsync(ModifyDBParameterGroupRequest request) { return modifyDBParameterGroupAsync(request, null); } @Override public java.util.concurrent.Future modifyDBParameterGroupAsync(final ModifyDBParameterGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDBParameterGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ModifyDBParameterGroupResult call() throws Exception { ModifyDBParameterGroupResult result = null; try { result = executeModifyDBParameterGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyDBSnapshotAsync(ModifyDBSnapshotRequest request) { return modifyDBSnapshotAsync(request, null); } @Override public java.util.concurrent.Future modifyDBSnapshotAsync(final ModifyDBSnapshotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDBSnapshotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBSnapshot call() throws Exception { DBSnapshot result = null; try { result = executeModifyDBSnapshot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyDBSnapshotAttributeAsync(ModifyDBSnapshotAttributeRequest request) { return modifyDBSnapshotAttributeAsync(request, null); } @Override public java.util.concurrent.Future modifyDBSnapshotAttributeAsync(final ModifyDBSnapshotAttributeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDBSnapshotAttributeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBSnapshotAttributesResult call() throws Exception { DBSnapshotAttributesResult result = null; try { result = executeModifyDBSnapshotAttribute(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyDBSubnetGroupAsync(ModifyDBSubnetGroupRequest request) { return modifyDBSubnetGroupAsync(request, null); } @Override public java.util.concurrent.Future modifyDBSubnetGroupAsync(final ModifyDBSubnetGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyDBSubnetGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBSubnetGroup call() throws Exception { DBSubnetGroup result = null; try { result = executeModifyDBSubnetGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyEventSubscriptionAsync(ModifyEventSubscriptionRequest request) { return modifyEventSubscriptionAsync(request, null); } @Override public java.util.concurrent.Future modifyEventSubscriptionAsync(final ModifyEventSubscriptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyEventSubscriptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public EventSubscription call() throws Exception { EventSubscription result = null; try { result = executeModifyEventSubscription(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future modifyOptionGroupAsync(ModifyOptionGroupRequest request) { return modifyOptionGroupAsync(request, null); } @Override public java.util.concurrent.Future modifyOptionGroupAsync(final ModifyOptionGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ModifyOptionGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public OptionGroup call() throws Exception { OptionGroup result = null; try { result = executeModifyOptionGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future promoteReadReplicaAsync(PromoteReadReplicaRequest request) { return promoteReadReplicaAsync(request, null); } @Override public java.util.concurrent.Future promoteReadReplicaAsync(final PromoteReadReplicaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PromoteReadReplicaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBInstance call() throws Exception { DBInstance result = null; try { result = executePromoteReadReplica(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future promoteReadReplicaDBClusterAsync(PromoteReadReplicaDBClusterRequest request) { return promoteReadReplicaDBClusterAsync(request, null); } @Override public java.util.concurrent.Future promoteReadReplicaDBClusterAsync(final PromoteReadReplicaDBClusterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PromoteReadReplicaDBClusterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBCluster call() throws Exception { DBCluster result = null; try { result = executePromoteReadReplicaDBCluster(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future purchaseReservedDBInstancesOfferingAsync(PurchaseReservedDBInstancesOfferingRequest request) { return purchaseReservedDBInstancesOfferingAsync(request, null); } @Override public java.util.concurrent.Future purchaseReservedDBInstancesOfferingAsync(final PurchaseReservedDBInstancesOfferingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PurchaseReservedDBInstancesOfferingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ReservedDBInstance call() throws Exception { ReservedDBInstance result = null; try { result = executePurchaseReservedDBInstancesOffering(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future rebootDBInstanceAsync(RebootDBInstanceRequest request) { return rebootDBInstanceAsync(request, null); } @Override public java.util.concurrent.Future rebootDBInstanceAsync(final RebootDBInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RebootDBInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBInstance call() throws Exception { DBInstance result = null; try { result = executeRebootDBInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future removeRoleFromDBClusterAsync(RemoveRoleFromDBClusterRequest request) { return removeRoleFromDBClusterAsync(request, null); } @Override public java.util.concurrent.Future removeRoleFromDBClusterAsync(final RemoveRoleFromDBClusterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveRoleFromDBClusterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RemoveRoleFromDBClusterResult call() throws Exception { RemoveRoleFromDBClusterResult result = null; try { result = executeRemoveRoleFromDBCluster(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future removeSourceIdentifierFromSubscriptionAsync(RemoveSourceIdentifierFromSubscriptionRequest request) { return removeSourceIdentifierFromSubscriptionAsync(request, null); } @Override public java.util.concurrent.Future removeSourceIdentifierFromSubscriptionAsync( final RemoveSourceIdentifierFromSubscriptionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveSourceIdentifierFromSubscriptionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public EventSubscription call() throws Exception { EventSubscription result = null; try { result = executeRemoveSourceIdentifierFromSubscription(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request) { return removeTagsFromResourceAsync(request, null); } @Override public java.util.concurrent.Future removeTagsFromResourceAsync(final RemoveTagsFromResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveTagsFromResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RemoveTagsFromResourceResult call() throws Exception { RemoveTagsFromResourceResult result = null; try { result = executeRemoveTagsFromResource(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future resetDBClusterParameterGroupAsync(ResetDBClusterParameterGroupRequest request) { return resetDBClusterParameterGroupAsync(request, null); } @Override public java.util.concurrent.Future resetDBClusterParameterGroupAsync(final ResetDBClusterParameterGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResetDBClusterParameterGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResetDBClusterParameterGroupResult call() throws Exception { ResetDBClusterParameterGroupResult result = null; try { result = executeResetDBClusterParameterGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future resetDBParameterGroupAsync(ResetDBParameterGroupRequest request) { return resetDBParameterGroupAsync(request, null); } @Override public java.util.concurrent.Future resetDBParameterGroupAsync(final ResetDBParameterGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResetDBParameterGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResetDBParameterGroupResult call() throws Exception { ResetDBParameterGroupResult result = null; try { result = executeResetDBParameterGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future restoreDBClusterFromS3Async(RestoreDBClusterFromS3Request request) { return restoreDBClusterFromS3Async(request, null); } @Override public java.util.concurrent.Future restoreDBClusterFromS3Async(final RestoreDBClusterFromS3Request request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RestoreDBClusterFromS3Request finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBCluster call() throws Exception { DBCluster result = null; try { result = executeRestoreDBClusterFromS3(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future restoreDBClusterFromSnapshotAsync(RestoreDBClusterFromSnapshotRequest request) { return restoreDBClusterFromSnapshotAsync(request, null); } @Override public java.util.concurrent.Future restoreDBClusterFromSnapshotAsync(final RestoreDBClusterFromSnapshotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RestoreDBClusterFromSnapshotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBCluster call() throws Exception { DBCluster result = null; try { result = executeRestoreDBClusterFromSnapshot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future restoreDBClusterToPointInTimeAsync(RestoreDBClusterToPointInTimeRequest request) { return restoreDBClusterToPointInTimeAsync(request, null); } @Override public java.util.concurrent.Future restoreDBClusterToPointInTimeAsync(final RestoreDBClusterToPointInTimeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RestoreDBClusterToPointInTimeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBCluster call() throws Exception { DBCluster result = null; try { result = executeRestoreDBClusterToPointInTime(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future restoreDBInstanceFromDBSnapshotAsync(RestoreDBInstanceFromDBSnapshotRequest request) { return restoreDBInstanceFromDBSnapshotAsync(request, null); } @Override public java.util.concurrent.Future restoreDBInstanceFromDBSnapshotAsync(final RestoreDBInstanceFromDBSnapshotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RestoreDBInstanceFromDBSnapshotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBInstance call() throws Exception { DBInstance result = null; try { result = executeRestoreDBInstanceFromDBSnapshot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future restoreDBInstanceFromS3Async(RestoreDBInstanceFromS3Request request) { return restoreDBInstanceFromS3Async(request, null); } @Override public java.util.concurrent.Future restoreDBInstanceFromS3Async(final RestoreDBInstanceFromS3Request request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RestoreDBInstanceFromS3Request finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBInstance call() throws Exception { DBInstance result = null; try { result = executeRestoreDBInstanceFromS3(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future restoreDBInstanceToPointInTimeAsync(RestoreDBInstanceToPointInTimeRequest request) { return restoreDBInstanceToPointInTimeAsync(request, null); } @Override public java.util.concurrent.Future restoreDBInstanceToPointInTimeAsync(final RestoreDBInstanceToPointInTimeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RestoreDBInstanceToPointInTimeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBInstance call() throws Exception { DBInstance result = null; try { result = executeRestoreDBInstanceToPointInTime(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future revokeDBSecurityGroupIngressAsync(RevokeDBSecurityGroupIngressRequest request) { return revokeDBSecurityGroupIngressAsync(request, null); } @Override public java.util.concurrent.Future revokeDBSecurityGroupIngressAsync(final RevokeDBSecurityGroupIngressRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RevokeDBSecurityGroupIngressRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBSecurityGroup call() throws Exception { DBSecurityGroup result = null; try { result = executeRevokeDBSecurityGroupIngress(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future startDBInstanceAsync(StartDBInstanceRequest request) { return startDBInstanceAsync(request, null); } @Override public java.util.concurrent.Future startDBInstanceAsync(final StartDBInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartDBInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBInstance call() throws Exception { DBInstance result = null; try { result = executeStartDBInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future stopDBInstanceAsync(StopDBInstanceRequest request) { return stopDBInstanceAsync(request, null); } @Override public java.util.concurrent.Future stopDBInstanceAsync(final StopDBInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StopDBInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DBInstance call() throws Exception { DBInstance result = null; try { result = executeStopDBInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } /** * Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending * asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to * calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy