@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonQLDBSessionAsyncClient extends AmazonQLDBSessionClient implements AmazonQLDBSessionAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
The transactional data APIs for Amazon QLDB
configFactoryclient, clientConfiguration, endpoint, isEndpointOverridden, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonQLDBSessionAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<SendCommandResult> |
sendCommandAsync(SendCommandRequest request)
Sends a command to an Amazon QLDB ledger.
|
Future<SendCommandResult> |
sendCommandAsync(SendCommandRequest request,
AsyncHandler<SendCommandRequest,SendCommandResult> asyncHandler)
Sends a command to an Amazon QLDB ledger.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, sendCommandaddRequestHandler, addRequestHandler, beforeClientExecution, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, getClientConfiguration, getClientId, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerOverride, getSignerProvider, getSignerRegionOverride, getSigningRegion, getTimeOffset, isCsmEnabled, isEndpointOverridden, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shouldGenerateClientSideMonitoringEvents, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, sendCommandpublic static AmazonQLDBSessionAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<SendCommandResult> sendCommandAsync(SendCommandRequest request)
AmazonQLDBSessionAsyncSends a command to an Amazon QLDB ledger.
sendCommandAsync in interface AmazonQLDBSessionAsyncpublic Future<SendCommandResult> sendCommandAsync(SendCommandRequest request, AsyncHandler<SendCommandRequest,SendCommandResult> asyncHandler)
AmazonQLDBSessionAsyncSends a command to an Amazon QLDB ledger.
sendCommandAsync in interface AmazonQLDBSessionAsyncasyncHandler - 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 AmazonQLDBSessionshutdown in class AmazonWebServiceClientCopyright © 2020. All rights reserved.