@ThreadSafe public class AWSMarketplaceCommerceAnalyticsAsyncClient extends AWSMarketplaceCommerceAnalyticsClient implements AWSMarketplaceCommerceAnalyticsAsync
AsyncHandler
can be
used to receive notification when an asynchronous operation completes.
Provides AWS Marketplace business intelligence data on-demand.
LOGGING_AWS_REQUEST_METRIC
Constructor and Description |
---|
AWSMarketplaceCommerceAnalyticsAsyncClient()
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics.
|
AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics using the specified AWS account
credentials.
|
AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics using the specified AWS account
credentials, executor service, and client configuration options.
|
AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics using the specified AWS account
credentials and executor service.
|
AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics using the specified AWS account
credentials provider.
|
AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics using the provided AWS account credentials
provider and client configuration options.
|
AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics using the specified AWS account
credentials provider, executor service, and client configuration options.
|
AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics using the specified AWS account
credentials provider and executor service.
|
AWSMarketplaceCommerceAnalyticsAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
Marketplace Commerce Analytics.
|
Modifier and Type | Method and Description |
---|---|
Future<GenerateDataSetResult> |
generateDataSetAsync(GenerateDataSetRequest request)
Given a data set type and data set publication date, asynchronously
publishes the requested data set to the specified S3 bucket and notifies
the specified SNS topic once the data is available.
|
Future<GenerateDataSetResult> |
generateDataSetAsync(GenerateDataSetRequest request,
AsyncHandler<GenerateDataSetRequest,GenerateDataSetResult> asyncHandler)
Given a data set type and data set publication date, asynchronously
publishes the requested data set to the specified S3 bucket and notifies
the specified SNS topic once the data is available.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async
requests.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
generateDataSet, getCachedResponseMetadata
addRequestHandler, addRequestHandler, configureRegion, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateDataSet, getCachedResponseMetadata, setEndpoint, setRegion
public AWSMarketplaceCommerceAnalyticsAsyncClient()
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).
public AWSMarketplaceCommerceAnalyticsAsyncClient(ClientConfiguration 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 AWS Marketplace Commerce Analytics (ex: proxy
settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentials awsCredentials)
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)
public AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
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.public AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
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.public AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentialsProvider 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)
public AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration 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).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
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.public AWSMarketplaceCommerceAnalyticsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
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 ExecutorService getExecutorService()
public Future<GenerateDataSetResult> generateDataSetAsync(GenerateDataSetRequest request)
AWSMarketplaceCommerceAnalyticsAsync
generateDataSetAsync
in interface AWSMarketplaceCommerceAnalyticsAsync
request
- Container for the parameters to the GenerateDataSet operation.public Future<GenerateDataSetResult> generateDataSetAsync(GenerateDataSetRequest request, AsyncHandler<GenerateDataSetRequest,GenerateDataSetResult> asyncHandler)
AWSMarketplaceCommerceAnalyticsAsync
generateDataSetAsync
in interface AWSMarketplaceCommerceAnalyticsAsync
request
- Container for the parameters to the GenerateDataSet operation.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 AWSMarketplaceCommerceAnalytics
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.