@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.
Amazon DocumentDB elastic-clusters support workloads with millions of reads/writes per second and petabytes of storage capacity. Amazon DocumentDB elastic clusters also simplify how developers interact with Amazon DocumentDB elastic-clusters by eliminating the need to choose, manage or upgrade instances.
Amazon DocumentDB elastic-clusters were created to:
provide a solution for customers looking for a database that provides virtually limitless scale with rich query capabilities and MongoDB API compatibility.
give customers higher connection limits, and to reduce downtime from patching.
continue investing in a cloud-native, elastic, and class leading architecture for JSON workloads.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, copyClusterSnapshot, createCluster, createClusterSnapshot, deleteCluster, deleteClusterSnapshot, getCachedResponseMetadata, getCluster, getClusterSnapshot, listClusters, listClusterSnapshots, listTagsForResource, restoreClusterFromSnapshot, startCluster, stopCluster, tagResource, untagResource, updateClusteraddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyClusterSnapshot, createCluster, createClusterSnapshot, deleteCluster, deleteClusterSnapshot, getCachedResponseMetadata, getCluster, getClusterSnapshot, listClusters, listClusterSnapshots, listTagsForResource, restoreClusterFromSnapshot, startCluster, stopCluster, tagResource, untagResource, updateClusterpublic static AmazonDocDBElasticAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CopyClusterSnapshotResult> copyClusterSnapshotAsync(CopyClusterSnapshotRequest request)
AmazonDocDBElasticAsyncCopies a snapshot of an elastic cluster.
copyClusterSnapshotAsync in interface AmazonDocDBElasticAsyncpublic Future<CopyClusterSnapshotResult> copyClusterSnapshotAsync(CopyClusterSnapshotRequest request, AsyncHandler<CopyClusterSnapshotRequest,CopyClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsyncCopies a snapshot of an elastic cluster.
copyClusterSnapshotAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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<CreateClusterResult> createClusterAsync(CreateClusterRequest request)
AmazonDocDBElasticAsyncCreates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
createClusterAsync in interface AmazonDocDBElasticAsyncpublic Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request, AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
AmazonDocDBElasticAsyncCreates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
createClusterAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncCreates a snapshot of an elastic cluster.
createClusterSnapshotAsync in interface AmazonDocDBElasticAsyncpublic Future<CreateClusterSnapshotResult> createClusterSnapshotAsync(CreateClusterSnapshotRequest request, AsyncHandler<CreateClusterSnapshotRequest,CreateClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsyncCreates a snapshot of an elastic cluster.
createClusterSnapshotAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncDelete an elastic cluster.
deleteClusterAsync in interface AmazonDocDBElasticAsyncpublic Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request, AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
AmazonDocDBElasticAsyncDelete an elastic cluster.
deleteClusterAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncDelete an elastic cluster snapshot.
deleteClusterSnapshotAsync in interface AmazonDocDBElasticAsyncpublic Future<DeleteClusterSnapshotResult> deleteClusterSnapshotAsync(DeleteClusterSnapshotRequest request, AsyncHandler<DeleteClusterSnapshotRequest,DeleteClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsyncDelete an elastic cluster snapshot.
deleteClusterSnapshotAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncReturns information about a specific elastic cluster.
getClusterAsync in interface AmazonDocDBElasticAsyncpublic Future<GetClusterResult> getClusterAsync(GetClusterRequest request, AsyncHandler<GetClusterRequest,GetClusterResult> asyncHandler)
AmazonDocDBElasticAsyncReturns information about a specific elastic cluster.
getClusterAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncReturns information about a specific elastic cluster snapshot
getClusterSnapshotAsync in interface AmazonDocDBElasticAsyncpublic Future<GetClusterSnapshotResult> getClusterSnapshotAsync(GetClusterSnapshotRequest request, AsyncHandler<GetClusterSnapshotRequest,GetClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsyncReturns information about a specific elastic cluster snapshot
getClusterSnapshotAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncReturns information about snapshots for a specified elastic cluster.
listClusterSnapshotsAsync in interface AmazonDocDBElasticAsyncpublic Future<ListClusterSnapshotsResult> listClusterSnapshotsAsync(ListClusterSnapshotsRequest request, AsyncHandler<ListClusterSnapshotsRequest,ListClusterSnapshotsResult> asyncHandler)
AmazonDocDBElasticAsyncReturns information about snapshots for a specified elastic cluster.
listClusterSnapshotsAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncReturns information about provisioned Amazon DocumentDB elastic clusters.
listClustersAsync in interface AmazonDocDBElasticAsyncpublic Future<ListClustersResult> listClustersAsync(ListClustersRequest request, AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler)
AmazonDocDBElasticAsyncReturns information about provisioned Amazon DocumentDB elastic clusters.
listClustersAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncLists all tags on a elastic cluster resource
listTagsForResourceAsync in interface AmazonDocDBElasticAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonDocDBElasticAsyncLists all tags on a elastic cluster resource
listTagsForResourceAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncRestores an elastic cluster from a snapshot.
restoreClusterFromSnapshotAsync in interface AmazonDocDBElasticAsyncpublic Future<RestoreClusterFromSnapshotResult> restoreClusterFromSnapshotAsync(RestoreClusterFromSnapshotRequest request, AsyncHandler<RestoreClusterFromSnapshotRequest,RestoreClusterFromSnapshotResult> asyncHandler)
AmazonDocDBElasticAsyncRestores an elastic cluster from a snapshot.
restoreClusterFromSnapshotAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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<StartClusterResult> startClusterAsync(StartClusterRequest request)
AmazonDocDBElasticAsync
Restarts the stopped elastic cluster that is specified by clusterARN.
startClusterAsync in interface AmazonDocDBElasticAsyncpublic Future<StartClusterResult> startClusterAsync(StartClusterRequest request, AsyncHandler<StartClusterRequest,StartClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Restarts the stopped elastic cluster that is specified by clusterARN.
startClusterAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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<StopClusterResult> stopClusterAsync(StopClusterRequest request)
AmazonDocDBElasticAsync
Stops the running elastic cluster that is specified by clusterArn. The elastic cluster must be in
the available state.
stopClusterAsync in interface AmazonDocDBElasticAsyncpublic Future<StopClusterResult> stopClusterAsync(StopClusterRequest request, AsyncHandler<StopClusterRequest,StopClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Stops the running elastic cluster that is specified by clusterArn. The elastic cluster must be in
the available state.
stopClusterAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncAdds metadata tags to an elastic cluster resource
tagResourceAsync in interface AmazonDocDBElasticAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonDocDBElasticAsyncAdds metadata tags to an elastic cluster resource
tagResourceAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncRemoves metadata tags from an elastic cluster resource
untagResourceAsync in interface AmazonDocDBElasticAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonDocDBElasticAsyncRemoves metadata tags from an elastic cluster resource
untagResourceAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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)
AmazonDocDBElasticAsyncModifies an elastic cluster. This includes updating admin-username/password, upgrading the API version, and setting up a backup window and maintenance window
updateClusterAsync in interface AmazonDocDBElasticAsyncpublic Future<UpdateClusterResult> updateClusterAsync(UpdateClusterRequest request, AsyncHandler<UpdateClusterRequest,UpdateClusterResult> asyncHandler)
AmazonDocDBElasticAsyncModifies an elastic cluster. This includes updating admin-username/password, upgrading the API version, and setting up a backup window and maintenance window
updateClusterAsync in interface AmazonDocDBElasticAsyncasyncHandler - 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 AmazonDocDBElasticshutdown in class AmazonDocDBElasticClient