public class AmazonCloudFrontAsyncClient extends AmazonCloudFrontClient implements AmazonCloudFrontAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.LOGGING_AWS_REQUEST_METRIC| Constructor and Description |
|---|
AmazonCloudFrontAsyncClient()
Constructs a new asynchronous client to invoke service methods on
CloudFront.
|
AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
CloudFront using the specified AWS account credentials.
|
AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CloudFront using the specified AWS account credentials, executor service,
and client configuration options.
|
AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CloudFront using the specified AWS account credentials and executor
service.
|
AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
CloudFront using the specified AWS account credentials provider.
|
AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
CloudFront using the provided AWS account credentials provider and client
configuration options.
|
AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CloudFront using the specified AWS account credentials provider, executor
service, and client configuration options.
|
AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CloudFront using the specified AWS account credentials provider and
executor service.
|
AmazonCloudFrontAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
CloudFront.
|
createCloudFrontOriginAccessIdentity, createDistribution, createInvalidation, createStreamingDistribution, deleteCloudFrontOriginAccessIdentity, deleteDistribution, deleteStreamingDistribution, getCachedResponseMetadata, getCloudFrontOriginAccessIdentity, getCloudFrontOriginAccessIdentityConfig, getDistribution, getDistributionConfig, getInvalidation, getStreamingDistribution, getStreamingDistributionConfig, listCloudFrontOriginAccessIdentities, listDistributions, listDistributionsByWebACLId, listInvalidations, listStreamingDistributions, updateCloudFrontOriginAccessIdentity, updateDistribution, updateStreamingDistributionaddRequestHandler, addRequestHandler, configureRegion, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCloudFrontOriginAccessIdentity, createDistribution, createInvalidation, createStreamingDistribution, deleteCloudFrontOriginAccessIdentity, deleteDistribution, deleteStreamingDistribution, getCachedResponseMetadata, getCloudFrontOriginAccessIdentity, getCloudFrontOriginAccessIdentityConfig, getDistribution, getDistributionConfig, getInvalidation, getStreamingDistribution, getStreamingDistributionConfig, listCloudFrontOriginAccessIdentities, listDistributions, listDistributionsByWebACLId, listInvalidations, listStreamingDistributions, setEndpoint, setRegion, updateCloudFrontOriginAccessIdentity, updateDistribution, updateStreamingDistributionpublic AmazonCloudFrontAsyncClient()
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 AmazonCloudFrontAsyncClient(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 CloudFront (ex: proxy settings, retry counts, etc).DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)public AmazonCloudFrontAsyncClient(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 AmazonCloudFrontAsyncClient(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 AmazonCloudFrontAsyncClient(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 AmazonCloudFrontAsyncClient(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 AmazonCloudFrontAsyncClient(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 AmazonCloudFrontAsyncClient(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 AmazonCloudFrontAsyncClient(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<CreateCloudFrontOriginAccessIdentityResult> createCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request)
createCloudFrontOriginAccessIdentityAsync in interface AmazonCloudFrontAsyncpublic Future<CreateCloudFrontOriginAccessIdentityResult> createCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<CreateCloudFrontOriginAccessIdentityRequest,CreateCloudFrontOriginAccessIdentityResult> asyncHandler)
createCloudFrontOriginAccessIdentityAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<CreateDistributionResult> createDistributionAsync(CreateDistributionRequest request)
createDistributionAsync in interface AmazonCloudFrontAsyncpublic Future<CreateDistributionResult> createDistributionAsync(CreateDistributionRequest request, AsyncHandler<CreateDistributionRequest,CreateDistributionResult> asyncHandler)
createDistributionAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<CreateInvalidationResult> createInvalidationAsync(CreateInvalidationRequest request)
createInvalidationAsync in interface AmazonCloudFrontAsyncpublic Future<CreateInvalidationResult> createInvalidationAsync(CreateInvalidationRequest request, AsyncHandler<CreateInvalidationRequest,CreateInvalidationResult> asyncHandler)
createInvalidationAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<CreateStreamingDistributionResult> createStreamingDistributionAsync(CreateStreamingDistributionRequest request)
createStreamingDistributionAsync in interface AmazonCloudFrontAsyncpublic Future<CreateStreamingDistributionResult> createStreamingDistributionAsync(CreateStreamingDistributionRequest request, AsyncHandler<CreateStreamingDistributionRequest,CreateStreamingDistributionResult> asyncHandler)
createStreamingDistributionAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<Void> deleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request)
deleteCloudFrontOriginAccessIdentityAsync in interface AmazonCloudFrontAsyncpublic Future<Void> deleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request, AsyncHandler<DeleteCloudFrontOriginAccessIdentityRequest,Void> asyncHandler)
deleteCloudFrontOriginAccessIdentityAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<Void> deleteDistributionAsync(DeleteDistributionRequest request)
deleteDistributionAsync in interface AmazonCloudFrontAsyncpublic Future<Void> deleteDistributionAsync(DeleteDistributionRequest request, AsyncHandler<DeleteDistributionRequest,Void> asyncHandler)
deleteDistributionAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<Void> deleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request)
deleteStreamingDistributionAsync in interface AmazonCloudFrontAsyncpublic Future<Void> deleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request, AsyncHandler<DeleteStreamingDistributionRequest,Void> asyncHandler)
deleteStreamingDistributionAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<GetCloudFrontOriginAccessIdentityResult> getCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request)
getCloudFrontOriginAccessIdentityAsync in interface AmazonCloudFrontAsyncpublic Future<GetCloudFrontOriginAccessIdentityResult> getCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityRequest,GetCloudFrontOriginAccessIdentityResult> asyncHandler)
getCloudFrontOriginAccessIdentityAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<GetCloudFrontOriginAccessIdentityConfigResult> getCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request)
getCloudFrontOriginAccessIdentityConfigAsync in interface AmazonCloudFrontAsyncpublic Future<GetCloudFrontOriginAccessIdentityConfigResult> getCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityConfigRequest,GetCloudFrontOriginAccessIdentityConfigResult> asyncHandler)
getCloudFrontOriginAccessIdentityConfigAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<GetDistributionResult> getDistributionAsync(GetDistributionRequest request)
getDistributionAsync in interface AmazonCloudFrontAsyncpublic Future<GetDistributionResult> getDistributionAsync(GetDistributionRequest request, AsyncHandler<GetDistributionRequest,GetDistributionResult> asyncHandler)
getDistributionAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<GetDistributionConfigResult> getDistributionConfigAsync(GetDistributionConfigRequest request)
getDistributionConfigAsync in interface AmazonCloudFrontAsyncpublic Future<GetDistributionConfigResult> getDistributionConfigAsync(GetDistributionConfigRequest request, AsyncHandler<GetDistributionConfigRequest,GetDistributionConfigResult> asyncHandler)
getDistributionConfigAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<GetInvalidationResult> getInvalidationAsync(GetInvalidationRequest request)
getInvalidationAsync in interface AmazonCloudFrontAsyncpublic Future<GetInvalidationResult> getInvalidationAsync(GetInvalidationRequest request, AsyncHandler<GetInvalidationRequest,GetInvalidationResult> asyncHandler)
getInvalidationAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<GetStreamingDistributionResult> getStreamingDistributionAsync(GetStreamingDistributionRequest request)
getStreamingDistributionAsync in interface AmazonCloudFrontAsyncpublic Future<GetStreamingDistributionResult> getStreamingDistributionAsync(GetStreamingDistributionRequest request, AsyncHandler<GetStreamingDistributionRequest,GetStreamingDistributionResult> asyncHandler)
getStreamingDistributionAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<GetStreamingDistributionConfigResult> getStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request)
getStreamingDistributionConfigAsync in interface AmazonCloudFrontAsyncpublic Future<GetStreamingDistributionConfigResult> getStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, AsyncHandler<GetStreamingDistributionConfigRequest,GetStreamingDistributionConfigResult> asyncHandler)
getStreamingDistributionConfigAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<ListCloudFrontOriginAccessIdentitiesResult> listCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request)
listCloudFrontOriginAccessIdentitiesAsync in interface AmazonCloudFrontAsyncpublic Future<ListCloudFrontOriginAccessIdentitiesResult> listCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, AsyncHandler<ListCloudFrontOriginAccessIdentitiesRequest,ListCloudFrontOriginAccessIdentitiesResult> asyncHandler)
listCloudFrontOriginAccessIdentitiesAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<ListDistributionsResult> listDistributionsAsync(ListDistributionsRequest request)
listDistributionsAsync in interface AmazonCloudFrontAsyncpublic Future<ListDistributionsResult> listDistributionsAsync(ListDistributionsRequest request, AsyncHandler<ListDistributionsRequest,ListDistributionsResult> asyncHandler)
listDistributionsAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<ListDistributionsByWebACLIdResult> listDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request)
listDistributionsByWebACLIdAsync in interface AmazonCloudFrontAsyncpublic Future<ListDistributionsByWebACLIdResult> listDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request, AsyncHandler<ListDistributionsByWebACLIdRequest,ListDistributionsByWebACLIdResult> asyncHandler)
listDistributionsByWebACLIdAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<ListInvalidationsResult> listInvalidationsAsync(ListInvalidationsRequest request)
listInvalidationsAsync in interface AmazonCloudFrontAsyncpublic Future<ListInvalidationsResult> listInvalidationsAsync(ListInvalidationsRequest request, AsyncHandler<ListInvalidationsRequest,ListInvalidationsResult> asyncHandler)
listInvalidationsAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<ListStreamingDistributionsResult> listStreamingDistributionsAsync(ListStreamingDistributionsRequest request)
listStreamingDistributionsAsync in interface AmazonCloudFrontAsyncpublic Future<ListStreamingDistributionsResult> listStreamingDistributionsAsync(ListStreamingDistributionsRequest request, AsyncHandler<ListStreamingDistributionsRequest,ListStreamingDistributionsResult> asyncHandler)
listStreamingDistributionsAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<UpdateCloudFrontOriginAccessIdentityResult> updateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request)
updateCloudFrontOriginAccessIdentityAsync in interface AmazonCloudFrontAsyncpublic Future<UpdateCloudFrontOriginAccessIdentityResult> updateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<UpdateCloudFrontOriginAccessIdentityRequest,UpdateCloudFrontOriginAccessIdentityResult> asyncHandler)
updateCloudFrontOriginAccessIdentityAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<UpdateDistributionResult> updateDistributionAsync(UpdateDistributionRequest request)
updateDistributionAsync in interface AmazonCloudFrontAsyncpublic Future<UpdateDistributionResult> updateDistributionAsync(UpdateDistributionRequest request, AsyncHandler<UpdateDistributionRequest,UpdateDistributionResult> asyncHandler)
updateDistributionAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 Future<UpdateStreamingDistributionResult> updateStreamingDistributionAsync(UpdateStreamingDistributionRequest request)
updateStreamingDistributionAsync in interface AmazonCloudFrontAsyncpublic Future<UpdateStreamingDistributionResult> updateStreamingDistributionAsync(UpdateStreamingDistributionRequest request, AsyncHandler<UpdateStreamingDistributionRequest,UpdateStreamingDistributionResult> asyncHandler)
updateStreamingDistributionAsync in interface AmazonCloudFrontAsyncasyncHandler - 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 AmazonCloudFrontshutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.