@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonImportExportAsyncClient extends AmazonImportExportClient implements AmazonImportExportAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AmazonImportExportAsyncClient()
Deprecated.
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials)
Deprecated.
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
|
AmazonImportExportAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AmazonImportExportAsyncClientBuilder |
asyncBuilder() |
Future<CancelJobResult> |
cancelJobAsync(CancelJobRequest request)
This operation cancels a specified job.
|
Future<CancelJobResult> |
cancelJobAsync(CancelJobRequest request,
AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
This operation cancels a specified job.
|
Future<CreateJobResult> |
createJobAsync(CreateJobRequest request)
This operation initiates the process of scheduling an upload or download of your data.
|
Future<CreateJobResult> |
createJobAsync(CreateJobRequest request,
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 request)
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 request,
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 request)
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 request,
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 request)
This operation returns the jobs associated with the requester.
|
Future<ListJobsResult> |
listJobsAsync(ListJobsRequest request,
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 request)
You use this operation to change the parameters specified in the original manifest file by supplying a new
manifest file.
|
Future<UpdateJobResult> |
updateJobAsync(UpdateJobRequest request,
AsyncHandler<UpdateJobRequest,UpdateJobResult> asyncHandler)
You use this operation to change the parameters specified in the original manifest file by supplying a new
manifest file.
|
builder, cancelJob, createJob, getCachedResponseMetadata, getShippingLabel, getStatus, listJobs, listJobs, updateJob
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelJob, createJob, getCachedResponseMetadata, getShippingLabel, getStatus, listJobs, listJobs, setEndpoint, setRegion, updateJob
@Deprecated public AmazonImportExportAsyncClient()
AmazonImportExportAsyncClientBuilder.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).
@Deprecated public AmazonImportExportAsyncClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.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 AWS Import/Export (ex: proxy
settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AmazonImportExportAsyncClient(AWSCredentials awsCredentials)
AwsClientBuilder.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 AmazonImportExportAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.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 AmazonImportExportAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.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 AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.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 AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.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).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.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 AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.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 AmazonImportExportAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CancelJobResult> cancelJobAsync(CancelJobRequest request)
AmazonImportExportAsync
cancelJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the CancelJob operation.public Future<CancelJobResult> cancelJobAsync(CancelJobRequest request, AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
AmazonImportExportAsync
cancelJobAsync
in interface AmazonImportExportAsync
request
- 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 request)
AmazonImportExportAsync
createJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the CreateJob operation.public Future<CreateJobResult> createJobAsync(CreateJobRequest request, AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
AmazonImportExportAsync
createJobAsync
in interface AmazonImportExportAsync
request
- 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 request)
AmazonImportExportAsync
getShippingLabelAsync
in interface AmazonImportExportAsync
public Future<GetShippingLabelResult> getShippingLabelAsync(GetShippingLabelRequest request, AsyncHandler<GetShippingLabelRequest,GetShippingLabelResult> asyncHandler)
AmazonImportExportAsync
getShippingLabelAsync
in interface AmazonImportExportAsync
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<GetStatusResult> getStatusAsync(GetStatusRequest request)
AmazonImportExportAsync
getStatusAsync
in interface AmazonImportExportAsync
request
- Input structure for the GetStatus operation.public Future<GetStatusResult> getStatusAsync(GetStatusRequest request, AsyncHandler<GetStatusRequest,GetStatusResult> asyncHandler)
AmazonImportExportAsync
getStatusAsync
in interface AmazonImportExportAsync
request
- 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 request)
AmazonImportExportAsync
listJobsAsync
in interface AmazonImportExportAsync
request
- Input structure for the ListJobs operation.public Future<ListJobsResult> listJobsAsync(ListJobsRequest request, AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
AmazonImportExportAsync
listJobsAsync
in interface AmazonImportExportAsync
request
- 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()
listJobsAsync
in interface 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 request)
AmazonImportExportAsync
updateJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the UpateJob operation.public Future<UpdateJobResult> updateJobAsync(UpdateJobRequest request, AsyncHandler<UpdateJobRequest,UpdateJobResult> asyncHandler)
AmazonImportExportAsync
updateJobAsync
in interface AmazonImportExportAsync
request
- 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.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonImportExport
shutdown
in class AmazonImportExportClient