Class AmazonDirectConnectAsyncClient

  • All Implemented Interfaces:
    AmazonDirectConnect, AmazonDirectConnectAsync

    @ThreadSafe
    public class AmazonDirectConnectAsyncClient
    extends AmazonDirectConnectClient
    implements AmazonDirectConnectAsync
    Interface for accessing AWS Direct Connect asynchronously. Each asynchronous method will return a Java Future object representing the asynchronous operation; overloads which accept an AsyncHandler can be used to receive notification when an asynchronous operation completes.

    AWS Direct Connect links your internal network to an AWS Direct Connect location over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router. With this connection in place, you can create virtual interfaces directly to the AWS cloud (for example, to Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Simple Storage Service (Amazon S3)) and to Amazon Virtual Private Cloud (Amazon VPC), bypassing Internet service providers in your network path. An AWS Direct Connect location provides access to AWS in the region it is associated with, as well as access to other US regions. For example, you can provision a single connection to any AWS Direct Connect location in the US and use it to access public AWS services in all US Regions and AWS GovCloud (US).

    • Constructor Detail

      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient()
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect. 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 Also:
        DefaultAWSCredentialsProviderChain, Executors.newFixedThreadPool(int)
      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient​(ClientConfiguration clientConfiguration)
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect. 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 ClientConfiguration.getMaxConnections().

        Parameters:
        clientConfiguration - The client configuration options controlling how this client connects to AWS Direct Connect (ex: proxy settings, retry counts, etc).
        See Also:
        DefaultAWSCredentialsProviderChain, Executors.newFixedThreadPool(int)
      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient​(AWSCredentials awsCredentials)
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect 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).

        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
        See Also:
        Executors.newFixedThreadPool(int)
      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient​(AWSCredentials awsCredentials,
                                              ExecutorService executorService)
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect using the specified AWS account credentials and executor service. Default client settings will be used.
        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
        executorService - The executor service by which all asynchronous requests will be executed.
      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient​(AWSCredentials awsCredentials,
                                              ClientConfiguration clientConfiguration,
                                              ExecutorService executorService)
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect using the specified AWS account credentials, executor service, and client configuration options.
        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
        clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).
        executorService - The executor service by which all asynchronous requests will be executed.
      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient​(AWSCredentialsProvider awsCredentialsProvider)
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect 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).

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        See Also:
        Executors.newFixedThreadPool(int)
      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient​(AWSCredentialsProvider awsCredentialsProvider,
                                              ClientConfiguration clientConfiguration)
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect 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 ClientConfiguration.getMaxConnections().

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).
        See Also:
        DefaultAWSCredentialsProviderChain, Executors.newFixedThreadPool(int)
      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient​(AWSCredentialsProvider awsCredentialsProvider,
                                              ExecutorService executorService)
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect using the specified AWS account credentials provider and executor service. Default client settings will be used.
        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        executorService - The executor service by which all asynchronous requests will be executed.
      • AmazonDirectConnectAsyncClient

        public AmazonDirectConnectAsyncClient​(AWSCredentialsProvider awsCredentialsProvider,
                                              ClientConfiguration clientConfiguration,
                                              ExecutorService executorService)
        Constructs a new asynchronous client to invoke service methods on AWS Direct Connect using the specified AWS account credentials provider, executor service, and client configuration options.
        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).
        executorService - The executor service by which all asynchronous requests will be executed.