@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonEBSAsyncClient extends AmazonEBSClient implements AmazonEBSAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
You can use the Amazon Elastic Block Store (EBS) direct APIs to directly read the data on your EBS snapshots, and identify the difference between two snapshots. You can view the details of blocks in an EBS snapshot, compare the block difference between two snapshots, and directly access the data in a snapshot. If you’re an independent software vendor (ISV) who offers backup services for EBS, the EBS direct APIs makes it easier and more cost-effective to track incremental changes on your EBS volumes via EBS snapshots. This can be done without having to create new volumes from EBS snapshots, and then use EC2 instances to compare the differences.
This API reference provides detailed information about the actions, data types, parameters, and errors of the EBS direct APIs. For more information about the elements that make up the EBS direct APIs, and examples of how to use them effectively, see Accessing the Contents of an EBS Snapshot. For more information about how to use the EBS direct APIs, see the EBS direct APIs User Guide. To view the currently supported AWS Regions and endpoints for the EBS direct APIs, see AWS Service Endpoints in the AWS General Reference.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonEBSAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetSnapshotBlockResult> |
getSnapshotBlockAsync(GetSnapshotBlockRequest request)
Returns the data in a block in an Amazon Elastic Block Store snapshot.
|
Future<GetSnapshotBlockResult> |
getSnapshotBlockAsync(GetSnapshotBlockRequest request,
AsyncHandler<GetSnapshotBlockRequest,GetSnapshotBlockResult> asyncHandler)
Returns the data in a block in an Amazon Elastic Block Store snapshot.
|
Future<ListChangedBlocksResult> |
listChangedBlocksAsync(ListChangedBlocksRequest request)
Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store
snapshots of the same volume/snapshot lineage.
|
Future<ListChangedBlocksResult> |
listChangedBlocksAsync(ListChangedBlocksRequest request,
AsyncHandler<ListChangedBlocksRequest,ListChangedBlocksResult> asyncHandler)
Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store
snapshots of the same volume/snapshot lineage.
|
Future<ListSnapshotBlocksResult> |
listSnapshotBlocksAsync(ListSnapshotBlocksRequest request)
Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
|
Future<ListSnapshotBlocksResult> |
listSnapshotBlocksAsync(ListSnapshotBlocksRequest request,
AsyncHandler<ListSnapshotBlocksRequest,ListSnapshotBlocksResult> asyncHandler)
Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, getSnapshotBlock, listChangedBlocks, listSnapshotBlocks
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
getCachedResponseMetadata, getSnapshotBlock, listChangedBlocks, listSnapshotBlocks
public static AmazonEBSAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<GetSnapshotBlockResult> getSnapshotBlockAsync(GetSnapshotBlockRequest request)
AmazonEBSAsync
Returns the data in a block in an Amazon Elastic Block Store snapshot.
getSnapshotBlockAsync
in interface AmazonEBSAsync
public Future<GetSnapshotBlockResult> getSnapshotBlockAsync(GetSnapshotBlockRequest request, AsyncHandler<GetSnapshotBlockRequest,GetSnapshotBlockResult> asyncHandler)
AmazonEBSAsync
Returns the data in a block in an Amazon Elastic Block Store snapshot.
getSnapshotBlockAsync
in interface AmazonEBSAsync
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<ListChangedBlocksResult> listChangedBlocksAsync(ListChangedBlocksRequest request)
AmazonEBSAsync
Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
listChangedBlocksAsync
in interface AmazonEBSAsync
public Future<ListChangedBlocksResult> listChangedBlocksAsync(ListChangedBlocksRequest request, AsyncHandler<ListChangedBlocksRequest,ListChangedBlocksResult> asyncHandler)
AmazonEBSAsync
Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
listChangedBlocksAsync
in interface AmazonEBSAsync
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<ListSnapshotBlocksResult> listSnapshotBlocksAsync(ListSnapshotBlocksRequest request)
AmazonEBSAsync
Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
listSnapshotBlocksAsync
in interface AmazonEBSAsync
public Future<ListSnapshotBlocksResult> listSnapshotBlocksAsync(ListSnapshotBlocksRequest request, AsyncHandler<ListSnapshotBlocksRequest,ListSnapshotBlocksResult> asyncHandler)
AmazonEBSAsync
Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
listSnapshotBlocksAsync
in interface AmazonEBSAsync
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 AmazonEBS
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.