@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_METRIC
ENDPOINT_PREFIX
builder, copyClusterSnapshot, createCluster, createClusterSnapshot, deleteCluster, deleteClusterSnapshot, getCachedResponseMetadata, getCluster, getClusterSnapshot, listClusters, listClusterSnapshots, listTagsForResource, restoreClusterFromSnapshot, startCluster, stopCluster, 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
copyClusterSnapshot, createCluster, createClusterSnapshot, deleteCluster, deleteClusterSnapshot, getCachedResponseMetadata, getCluster, getClusterSnapshot, listClusters, listClusterSnapshots, listTagsForResource, restoreClusterFromSnapshot, startCluster, stopCluster, tagResource, untagResource, updateCluster
public static AmazonDocDBElasticAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CopyClusterSnapshotResult> copyClusterSnapshotAsync(CopyClusterSnapshotRequest request)
AmazonDocDBElasticAsync
Copies a snapshot of an elastic cluster.
copyClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<CopyClusterSnapshotResult> copyClusterSnapshotAsync(CopyClusterSnapshotRequest request, AsyncHandler<CopyClusterSnapshotRequest,CopyClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Copies a snapshot of an elastic cluster.
copyClusterSnapshotAsync
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<CreateClusterResult> createClusterAsync(CreateClusterRequest request)
AmazonDocDBElasticAsync
Creates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
createClusterAsync
in interface AmazonDocDBElasticAsync
public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest request, AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Creates a new Amazon DocumentDB elastic 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 an elastic cluster.
createClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<CreateClusterSnapshotResult> createClusterSnapshotAsync(CreateClusterSnapshotRequest request, AsyncHandler<CreateClusterSnapshotRequest,CreateClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Creates a snapshot of an elastic 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 an elastic cluster.
deleteClusterAsync
in interface AmazonDocDBElasticAsync
public Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest request, AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Delete an elastic 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 an elastic cluster snapshot.
deleteClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<DeleteClusterSnapshotResult> deleteClusterSnapshotAsync(DeleteClusterSnapshotRequest request, AsyncHandler<DeleteClusterSnapshotRequest,DeleteClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Delete an elastic cluster 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 cluster.
getClusterAsync
in interface AmazonDocDBElasticAsync
public Future<GetClusterResult> getClusterAsync(GetClusterRequest request, AsyncHandler<GetClusterRequest,GetClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Returns information about a specific elastic 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 cluster snapshot
getClusterSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<GetClusterSnapshotResult> getClusterSnapshotAsync(GetClusterSnapshotRequest request, AsyncHandler<GetClusterSnapshotRequest,GetClusterSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Returns information about a specific elastic cluster 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 snapshots for a specified elastic cluster.
listClusterSnapshotsAsync
in interface AmazonDocDBElasticAsync
public Future<ListClusterSnapshotsResult> listClusterSnapshotsAsync(ListClusterSnapshotsRequest request, AsyncHandler<ListClusterSnapshotsRequest,ListClusterSnapshotsResult> asyncHandler)
AmazonDocDBElasticAsync
Returns information about snapshots for a specified elastic 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 Amazon DocumentDB elastic clusters.
listClustersAsync
in interface AmazonDocDBElasticAsync
public Future<ListClustersResult> listClustersAsync(ListClustersRequest request, AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler)
AmazonDocDBElasticAsync
Returns information about provisioned Amazon DocumentDB elastic 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 cluster resource
listTagsForResourceAsync
in interface AmazonDocDBElasticAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonDocDBElasticAsync
Lists all tags on a elastic cluster 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 an elastic cluster from a snapshot.
restoreClusterFromSnapshotAsync
in interface AmazonDocDBElasticAsync
public Future<RestoreClusterFromSnapshotResult> restoreClusterFromSnapshotAsync(RestoreClusterFromSnapshotRequest request, AsyncHandler<RestoreClusterFromSnapshotRequest,RestoreClusterFromSnapshotResult> asyncHandler)
AmazonDocDBElasticAsync
Restores an elastic 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<StartClusterResult> startClusterAsync(StartClusterRequest request)
AmazonDocDBElasticAsync
Restarts the stopped elastic cluster that is specified by clusterARN
.
startClusterAsync
in interface AmazonDocDBElasticAsync
public Future<StartClusterResult> startClusterAsync(StartClusterRequest request, AsyncHandler<StartClusterRequest,StartClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Restarts the stopped elastic cluster that is specified by clusterARN
.
startClusterAsync
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<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 AmazonDocDBElasticAsync
public 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 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 an elastic cluster resource
tagResourceAsync
in interface AmazonDocDBElasticAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonDocDBElasticAsync
Adds metadata tags to an elastic cluster 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 from an elastic cluster resource
untagResourceAsync
in interface AmazonDocDBElasticAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonDocDBElasticAsync
Removes metadata tags from an elastic cluster 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 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 AmazonDocDBElasticAsync
public Future<UpdateClusterResult> updateClusterAsync(UpdateClusterRequest request, AsyncHandler<UpdateClusterRequest,UpdateClusterResult> asyncHandler)
AmazonDocDBElasticAsync
Modifies 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 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