@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSRDSDataAsyncClient extends AWSRDSDataClient implements AWSRDSDataAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
AWS RDS DataService provides Http Endpoint to query RDS databases.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AWSRDSDataAsyncClientBuilder |
asyncBuilder() |
Future<ExecuteSqlResult> |
executeSqlAsync(ExecuteSqlRequest request)
Executes any SQL statement on the target database synchronously
|
Future<ExecuteSqlResult> |
executeSqlAsync(ExecuteSqlRequest request,
AsyncHandler<ExecuteSqlRequest,ExecuteSqlResult> asyncHandler)
Executes any SQL statement on the target database synchronously
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, executeSql, getCachedResponseMetadataaddRequestHandler, 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, waitexecuteSql, getCachedResponseMetadatapublic static AWSRDSDataAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<ExecuteSqlResult> executeSqlAsync(ExecuteSqlRequest request)
AWSRDSDataAsyncexecuteSqlAsync in interface AWSRDSDataAsyncrequest - Execute SQL Requestpublic Future<ExecuteSqlResult> executeSqlAsync(ExecuteSqlRequest request, AsyncHandler<ExecuteSqlRequest,ExecuteSqlResult> asyncHandler)
AWSRDSDataAsyncexecuteSqlAsync in interface AWSRDSDataAsyncrequest - Execute SQL RequestasyncHandler - 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 AWSRDSDatashutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.