@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProductAdvertisingAPIAsyncClient extends ProductAdvertisingAPIClient implements ProductAdvertisingAPIAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
The Product Advertising API provides programmatic access to Amazon’s product selection and discovery functionality so that developers like you can advertise Amazon products to monetize your website. The Product Advertising API helps you advertise Amazon products using product search and look up capability, product information and features such as Customer Reviews, Similar Products, Wish Lists and New and Used listings.
configFactoryENDPOINT_PREFIX| Constructor and Description |
|---|
ProductAdvertisingAPIAsyncClient()
Deprecated.
|
ProductAdvertisingAPIAsyncClient(AWSCredentials awsCredentials)
Deprecated.
use
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) |
ProductAdvertisingAPIAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Deprecated.
use
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withClientConfiguration(ClientConfiguration) and
ProductAdvertisingAPIAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory) |
ProductAdvertisingAPIAsyncClient(AWSCredentials awsCredentials,
java.util.concurrent.ExecutorService executorService)
Deprecated.
use
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory) |
ProductAdvertisingAPIAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
use
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) |
ProductAdvertisingAPIAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Deprecated.
use
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withClientConfiguration(ClientConfiguration) |
ProductAdvertisingAPIAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
Deprecated.
use
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withClientConfiguration(ClientConfiguration) and
ProductAdvertisingAPIAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory) |
ProductAdvertisingAPIAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
java.util.concurrent.ExecutorService executorService)
Deprecated.
use
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory) |
ProductAdvertisingAPIAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
use
ProductAdvertisingAPIAsyncClientBuilder#withClientConfiguration(ClientConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
static ProductAdvertisingAPIAsyncClientBuilder |
asyncBuilder() |
java.util.concurrent.ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
java.util.concurrent.Future<GetRecommendationsResult> |
getRecommendationsAsync(GetRecommendationsRequest request)
GetRecommendations operation allows associates to retrieve a set of product recommendations from Amazon catalog
complementary to the input content in JSON format.
|
java.util.concurrent.Future<GetRecommendationsResult> |
getRecommendationsAsync(GetRecommendationsRequest request,
<any> asyncHandler)
GetRecommendations operation allows associates to retrieve a set of product recommendations from Amazon catalog
complementary to the input content in JSON format.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, getRecommendationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, getRecommendations, setEndpoint, setRegion@Deprecated public ProductAdvertisingAPIAsyncClient()
ProductAdvertisingAPIAsyncClientBuilder.defaultClient()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).
com.amazonaws.auth.DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)@Deprecated public ProductAdvertisingAPIAsyncClient(ClientConfiguration clientConfiguration)
ProductAdvertisingAPIAsyncClientBuilder#withClientConfiguration(ClientConfiguration)
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().
clientConfiguration - The client configuration options controlling how this client connects to ProductAdvertisingAPI (ex: proxy
settings, retry counts, etc).com.amazonaws.auth.DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)@Deprecated public ProductAdvertisingAPIAsyncClient(AWSCredentials awsCredentials)
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider)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).
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)@Deprecated
public ProductAdvertisingAPIAsyncClient(AWSCredentials awsCredentials,
java.util.concurrent.ExecutorService executorService)
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)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.@Deprecated
public ProductAdvertisingAPIAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withClientConfiguration(ClientConfiguration) and
ProductAdvertisingAPIAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)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.@Deprecated public ProductAdvertisingAPIAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider)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).
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)@Deprecated
public ProductAdvertisingAPIAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withClientConfiguration(ClientConfiguration)
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().
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).com.amazonaws.auth.DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)@Deprecated
public ProductAdvertisingAPIAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
java.util.concurrent.ExecutorService executorService)
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)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.@Deprecated
public ProductAdvertisingAPIAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
java.util.concurrent.ExecutorService executorService)
ProductAdvertisingAPIAsyncClientBuilder#withCredentials(AWSCredentialsProvider) and
ProductAdvertisingAPIAsyncClientBuilder#withClientConfiguration(ClientConfiguration) and
ProductAdvertisingAPIAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)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.public static ProductAdvertisingAPIAsyncClientBuilder asyncBuilder()
public java.util.concurrent.ExecutorService getExecutorService()
public java.util.concurrent.Future<GetRecommendationsResult> getRecommendationsAsync(GetRecommendationsRequest request)
ProductAdvertisingAPIAsyncgetRecommendationsAsync in interface ProductAdvertisingAPIAsyncrequest - It contains request parameters for the GetRecommendations operation. You can specify up to X number of
parameters for each request. Specify the parameters in JSON as part of the body of the request.public java.util.concurrent.Future<GetRecommendationsResult> getRecommendationsAsync(GetRecommendationsRequest request, <any> asyncHandler)
ProductAdvertisingAPIAsyncgetRecommendationsAsync in interface ProductAdvertisingAPIAsyncrequest - It contains request parameters for the GetRecommendations operation. You can specify up to X number of
parameters for each request. Specify the parameters in JSON as part of the body of the request.asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface ProductAdvertisingAPI