public class AmazonImportExportAsyncClient extends AmazonImportExportClient implements AmazonImportExportAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
exceptionUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AmazonImportExportAsyncClient()
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export.
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials.
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials, executor
service, and client configuration options.
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials and executor
service.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials provider.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the provided AWS account credentials provider and
client configuration options.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials provider,
executor service, and client configuration options.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials provider and
executor service.
|
AmazonImportExportAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export.
|
Modifier and Type | Method and Description |
---|---|
Future<CancelJobResult> |
cancelJobAsync(CancelJobRequest cancelJobRequest)
This operation cancels a specified job.
|
Future<CancelJobResult> |
cancelJobAsync(CancelJobRequest cancelJobRequest,
AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
This operation cancels a specified job.
|
Future<CreateJobResult> |
createJobAsync(CreateJobRequest createJobRequest)
This operation initiates the process of scheduling an upload or download
of your data.
|
Future<CreateJobResult> |
createJobAsync(CreateJobRequest createJobRequest,
AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
This operation initiates the process of scheduling an upload or download
of your data.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async
requests.
|
Future<GetShippingLabelResult> |
getShippingLabelAsync(GetShippingLabelRequest getShippingLabelRequest)
This operation generates a pre-paid UPS shipping label that you will use
to ship your device to AWS for processing.
|
Future<GetShippingLabelResult> |
getShippingLabelAsync(GetShippingLabelRequest getShippingLabelRequest,
AsyncHandler<GetShippingLabelRequest,GetShippingLabelResult> asyncHandler)
This operation generates a pre-paid UPS shipping label that you will use
to ship your device to AWS for processing.
|
Future<GetStatusResult> |
getStatusAsync(GetStatusRequest getStatusRequest)
This operation returns information about a job, including where the job
is in the processing pipeline, the status of the results, and the
signature value associated with the job.
|
Future<GetStatusResult> |
getStatusAsync(GetStatusRequest getStatusRequest,
AsyncHandler<GetStatusRequest,GetStatusResult> asyncHandler)
This operation returns information about a job, including where the job
is in the processing pipeline, the status of the results, and the
signature value associated with the job.
|
Future<ListJobsResult> |
listJobsAsync()
Simplified method form for invoking the ListJobs operation.
|
Future<ListJobsResult> |
listJobsAsync(AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
Simplified method form for invoking the ListJobs operation with an
AsyncHandler.
|
Future<ListJobsResult> |
listJobsAsync(ListJobsRequest listJobsRequest)
This operation returns the jobs associated with the requester.
|
Future<ListJobsResult> |
listJobsAsync(ListJobsRequest listJobsRequest,
AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
This operation returns the jobs associated with the requester.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<UpdateJobResult> |
updateJobAsync(UpdateJobRequest updateJobRequest)
You use this operation to change the parameters specified in the original
manifest file by supplying a new manifest file.
|
Future<UpdateJobResult> |
updateJobAsync(UpdateJobRequest updateJobRequest,
AsyncHandler<UpdateJobRequest,UpdateJobResult> asyncHandler)
You use this operation to change the parameters specified in the original
manifest file by supplying a new manifest file.
|
cancelJob, createJob, getCachedResponseMetadata, getShippingLabel, getStatus, listJobs, listJobs, updateJob
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelJob, createJob, getCachedResponseMetadata, getShippingLabel, getStatus, listJobs, listJobs, setEndpoint, setRegion, updateJob
public AmazonImportExportAsyncClient()
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 AmazonImportExportAsyncClient(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 Import/Export (ex: proxy settings, retry counts,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AmazonImportExportAsyncClient(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 AmazonImportExportAsyncClient(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 AmazonImportExportAsyncClient(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 AmazonImportExportAsyncClient(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 AmazonImportExportAsyncClient(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 AmazonImportExportAsyncClient(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 AmazonImportExportAsyncClient(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 void shutdown()
getExecutorService().shutdown()
followed by
getExecutorService().awaitTermination()
prior to calling this
method.shutdown
in interface AmazonImportExport
shutdown
in class AmazonWebServiceClient
public Future<CancelJobResult> cancelJobAsync(CancelJobRequest cancelJobRequest)
AmazonImportExportAsync
cancelJobAsync
in interface AmazonImportExportAsync
cancelJobRequest
- Input structure for the CancelJob operation.public Future<CancelJobResult> cancelJobAsync(CancelJobRequest cancelJobRequest, AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
AmazonImportExportAsync
cancelJobAsync
in interface AmazonImportExportAsync
cancelJobRequest
- Input structure for the CancelJob 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 Future<CreateJobResult> createJobAsync(CreateJobRequest createJobRequest)
AmazonImportExportAsync
createJobAsync
in interface AmazonImportExportAsync
createJobRequest
- Input structure for the CreateJob operation.public Future<CreateJobResult> createJobAsync(CreateJobRequest createJobRequest, AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
AmazonImportExportAsync
createJobAsync
in interface AmazonImportExportAsync
createJobRequest
- Input structure for the CreateJob 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 Future<GetShippingLabelResult> getShippingLabelAsync(GetShippingLabelRequest getShippingLabelRequest)
AmazonImportExportAsync
getShippingLabelAsync
in interface AmazonImportExportAsync
getShippingLabelRequest
- nullpublic Future<GetShippingLabelResult> getShippingLabelAsync(GetShippingLabelRequest getShippingLabelRequest, AsyncHandler<GetShippingLabelRequest,GetShippingLabelResult> asyncHandler)
AmazonImportExportAsync
getShippingLabelAsync
in interface AmazonImportExportAsync
getShippingLabelRequest
- nullasyncHandler
- 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<GetStatusResult> getStatusAsync(GetStatusRequest getStatusRequest)
AmazonImportExportAsync
getStatusAsync
in interface AmazonImportExportAsync
getStatusRequest
- Input structure for the GetStatus operation.public Future<GetStatusResult> getStatusAsync(GetStatusRequest getStatusRequest, AsyncHandler<GetStatusRequest,GetStatusResult> asyncHandler)
AmazonImportExportAsync
getStatusAsync
in interface AmazonImportExportAsync
getStatusRequest
- Input structure for the GetStatus 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 Future<ListJobsResult> listJobsAsync(ListJobsRequest listJobsRequest)
AmazonImportExportAsync
listJobsAsync
in interface AmazonImportExportAsync
listJobsRequest
- Input structure for the ListJobs operation.public Future<ListJobsResult> listJobsAsync(ListJobsRequest listJobsRequest, AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
AmazonImportExportAsync
listJobsAsync
in interface AmazonImportExportAsync
listJobsRequest
- Input structure for the ListJobs 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 Future<ListJobsResult> listJobsAsync()
AmazonImportExportAsync
listJobsAsync
in interface AmazonImportExportAsync
AmazonImportExportAsync.listJobsAsync(ListJobsRequest)
public Future<ListJobsResult> listJobsAsync(AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
listJobsAsync
in interface AmazonImportExportAsync
listJobsAsync(ListJobsRequest, com.amazonaws.handlers.AsyncHandler)
public Future<UpdateJobResult> updateJobAsync(UpdateJobRequest updateJobRequest)
AmazonImportExportAsync
updateJobAsync
in interface AmazonImportExportAsync
updateJobRequest
- Input structure for the UpateJob operation.public Future<UpdateJobResult> updateJobAsync(UpdateJobRequest updateJobRequest, AsyncHandler<UpdateJobRequest,UpdateJobResult> asyncHandler)
AmazonImportExportAsync
updateJobAsync
in interface AmazonImportExportAsync
updateJobRequest
- Input structure for the UpateJob 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.Copyright © 2015. All rights reserved.