@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonDocDBElasticAsyncClient extends AmazonDocDBElasticClient implements AmazonDocDBElasticAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
The new Amazon Elastic DocumentDB service endpoint.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, createCluster, createClusterSnapshot, deleteCluster, deleteClusterSnapshot, getCachedResponseMetadata, getCluster, getClusterSnapshot, listClusters, listClusterSnapshots, listTagsForResource, restoreClusterFromSnapshot, tagResource, untagResource, updateCluster
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
createCluster, createClusterSnapshot, deleteCluster, deleteClusterSnapshot, getCachedResponseMetadata, getCluster, getClusterSnapshot, listClusters, listClusterSnapshots, listTagsForResource, restoreClusterFromSnapshot, tagResource, untagResource, updateCluster
public static AmazonDocDBElasticAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request)
AmazonDocDBElasticAsync
Creates a new Elastic DocumentDB cluster and returns its Cluster structure.
createClusterAsync
in interface AmazonDocDBElasticAsync
public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request, AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Creates a new Elastic DocumentDB cluster and returns its Cluster structure.
createClusterAsync
in interface AmazonDocDBElasticAsync
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<CreateClusterSnapshotResult> createClusterSnapshotAsync(CreateClusterSnapshotRequest request)
AmazonDocDBElasticAsync
Creates a snapshot of a cluster.
createClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<CreateClusterSnapshotResult> createClusterSnapshotAsync(CreateClusterSnapshotRequest request, AsyncHandler<CreateClusterSnapshotRequest,CreateClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Creates a snapshot of a cluster.
createClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
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<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request)
AmazonDocDBElasticAsync
Delete a Elastic DocumentDB cluster.
deleteClusterAsync
in interface AmazonDocDBElasticAsync
public Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request, AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Delete a Elastic DocumentDB cluster.
deleteClusterAsync
in interface AmazonDocDBElasticAsync
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<DeleteClusterSnapshotResult> deleteClusterSnapshotAsync(DeleteClusterSnapshotRequest request)
AmazonDocDBElasticAsync
Delete a Elastic DocumentDB snapshot.
deleteClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<DeleteClusterSnapshotResult> deleteClusterSnapshotAsync(DeleteClusterSnapshotRequest request, AsyncHandler<DeleteClusterSnapshotRequest,DeleteClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Delete a Elastic DocumentDB snapshot.
deleteClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
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<GetClusterResult> getClusterAsync(GetClusterRequest request)
AmazonDocDBElasticAsync
Returns information about a specific Elastic DocumentDB cluster.
getClusterAsync
in interface AmazonDocDBElasticAsync
public Future<GetClusterResult> getClusterAsync(GetClusterRequest request, AsyncHandler<GetClusterRequest,GetClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Returns information about a specific Elastic DocumentDB cluster.
getClusterAsync
in interface AmazonDocDBElasticAsync
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<GetClusterSnapshotResult> getClusterSnapshotAsync(GetClusterSnapshotRequest request)
AmazonDocDBElasticAsync
Returns information about a specific Elastic DocumentDB snapshot
getClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<GetClusterSnapshotResult> getClusterSnapshotAsync(GetClusterSnapshotRequest request, AsyncHandler<GetClusterSnapshotRequest,GetClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Returns information about a specific Elastic DocumentDB snapshot
getClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
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<ListClusterSnapshotsResult> listClusterSnapshotsAsync(ListClusterSnapshotsRequest request)
AmazonDocDBElasticAsync
Returns information about Elastic DocumentDB snapshots for a specified cluster.
listClusterSnapshotsAsync
in interface AmazonDocDBElasticAsync
public Future<ListClusterSnapshotsResult> listClusterSnapshotsAsync(ListClusterSnapshotsRequest request, AsyncHandler<ListClusterSnapshotsRequest,ListClusterSnapshotsResult> asyncHandler)
AmazonDocDBElasticAsync
Returns information about Elastic DocumentDB snapshots for a specified cluster.
listClusterSnapshotsAsync
in interface AmazonDocDBElasticAsync
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<ListClustersResult> listClustersAsync(ListClustersRequest request)
AmazonDocDBElasticAsync
Returns information about provisioned Elastic DocumentDB clusters.
listClustersAsync
in interface AmazonDocDBElasticAsync
public Future<ListClustersResult> listClustersAsync(ListClustersRequest request, AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler)
AmazonDocDBElasticAsync
Returns information about provisioned Elastic DocumentDB clusters.
listClustersAsync
in interface AmazonDocDBElasticAsync
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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonDocDBElasticAsync
Lists all tags on a Elastic DocumentDB resource
listTagsForResourceAsync
in interface AmazonDocDBElasticAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonDocDBElasticAsync
Lists all tags on a Elastic DocumentDB resource
listTagsForResourceAsync
in interface AmazonDocDBElasticAsync
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<RestoreClusterFromSnapshotResult> restoreClusterFromSnapshotAsync(RestoreClusterFromSnapshotRequest request)
AmazonDocDBElasticAsync
Restores a Elastic DocumentDB cluster from a snapshot.
restoreClusterFromSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<RestoreClusterFromSnapshotResult> restoreClusterFromSnapshotAsync(RestoreClusterFromSnapshotRequest request, AsyncHandler<RestoreClusterFromSnapshotRequest,RestoreClusterFromSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Restores a Elastic DocumentDB cluster from a snapshot.
restoreClusterFromSnapshotAsync
in interface AmazonDocDBElasticAsync
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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonDocDBElasticAsync
Adds metadata tags to a Elastic DocumentDB resource
tagResourceAsync
in interface AmazonDocDBElasticAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonDocDBElasticAsync
Adds metadata tags to a Elastic DocumentDB resource
tagResourceAsync
in interface AmazonDocDBElasticAsync
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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonDocDBElasticAsync
Removes metadata tags to a Elastic DocumentDB resource
untagResourceAsync
in interface AmazonDocDBElasticAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonDocDBElasticAsync
Removes metadata tags to a Elastic DocumentDB resource
untagResourceAsync
in interface AmazonDocDBElasticAsync
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<UpdateClusterResult> updateClusterAsync(UpdateClusterRequest request)
AmazonDocDBElasticAsync
Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password, upgrading API version setting up a backup window and maintenance window
updateClusterAsync
in interface AmazonDocDBElasticAsync
public Future<UpdateClusterResult> updateClusterAsync(UpdateClusterRequest request, AsyncHandler<UpdateClusterRequest,UpdateClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password, upgrading API version setting up a backup window and maintenance window
updateClusterAsync
in interface AmazonDocDBElasticAsync
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 AmazonDocDBElastic
shutdown
in class AmazonDocDBElasticClient