/** * Constructs a new asynchronous client to invoke service methods on Amazon Elastic Transcoder. A * credentials provider chain will be used that searches for credentials in this order: * * <ul> * <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY * <li>Java System Properties - aws.accessKeyId and aws.secretKey * <li>Credential profiles file at the default location (~/.aws/credentials) shared by all AWS * SDKs and the AWS CLI * <li>Instance profile credentials delivered through the Amazon EC2 metadata service * </ul> * * <p>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 Elastic Transcoder (ex: proxy settings, retry counts, etc). * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain * @see java.util.concurrent.Executors#newFixedThreadPool(int) */ public AmazonElasticTranscoderAsyncClient(com.amazonaws.ClientConfiguration clientConfiguration) { this( com.amazonaws.auth.DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, java.util.concurrent.Executors.newFixedThreadPool(clientConfiguration.getMaxConnections())); }
/** * Constructs a new asynchronous client to invoke service methods on Amazon Elastic Transcoder. A * credentials provider chain will be used that searches for credentials in this order: * * <ul> * <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY * <li>Java System Properties - aws.accessKeyId and aws.secretKey * <li>Credential profiles file at the default location (~/.aws/credentials) shared by all AWS * SDKs and the AWS CLI * <li>Instance profile credentials delivered through the Amazon EC2 metadata service * </ul> * * <p>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) */ public AmazonElasticTranscoderAsyncClient() { this(com.amazonaws.auth.DefaultAWSCredentialsProviderChain.getInstance()); }