@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonTimestreamQueryAsyncClient extends AmazonTimestreamQueryClient implements AmazonTimestreamQueryAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonTimestreamQueryAsyncClientBuilder |
asyncBuilder() |
Future<CancelQueryResult> |
cancelQueryAsync(CancelQueryRequest request)
Cancels a query that has been issued.
|
Future<CancelQueryResult> |
cancelQueryAsync(CancelQueryRequest request,
AsyncHandler<CancelQueryRequest,CancelQueryResult> asyncHandler)
Cancels a query that has been issued.
|
Future<DescribeEndpointsResult> |
describeEndpointsAsync(DescribeEndpointsRequest request)
DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
|
Future<DescribeEndpointsResult> |
describeEndpointsAsync(DescribeEndpointsRequest request,
AsyncHandler<DescribeEndpointsRequest,DescribeEndpointsResult> asyncHandler)
DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<QueryResult> |
queryAsync(QueryRequest request)
Query is a synchronous operation that enables you to execute a query.
|
Future<QueryResult> |
queryAsync(QueryRequest request,
AsyncHandler<QueryRequest,QueryResult> asyncHandler)
Query is a synchronous operation that enables you to execute a query.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, cancelQuery, describeEndpoints, getCachedResponseMetadata, queryaddRequestHandler, 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, waitcancelQuery, describeEndpoints, getCachedResponseMetadata, querypublic static AmazonTimestreamQueryAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CancelQueryResult> cancelQueryAsync(CancelQueryRequest request)
AmazonTimestreamQueryAsync
Cancels a query that has been issued. Cancellation is guaranteed only if the query has not completed execution
before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent
cancellation requests will return a CancellationMessage, indicating that the query has already been
canceled.
cancelQueryAsync in interface AmazonTimestreamQueryAsyncpublic Future<CancelQueryResult> cancelQueryAsync(CancelQueryRequest request, AsyncHandler<CancelQueryRequest,CancelQueryResult> asyncHandler)
AmazonTimestreamQueryAsync
Cancels a query that has been issued. Cancellation is guaranteed only if the query has not completed execution
before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent
cancellation requests will return a CancellationMessage, indicating that the query has already been
canceled.
cancelQueryAsync in interface AmazonTimestreamQueryAsyncasyncHandler - 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<DescribeEndpointsResult> describeEndpointsAsync(DescribeEndpointsRequest request)
AmazonTimestreamQueryAsyncDescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.
Because Timestream’s SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:
Your application uses a programming language that does not yet have SDK support
You require better control over the client-side implementation
For detailed information on how to use DescribeEndpoints, see The Endpoint Discovery Pattern and REST APIs.
describeEndpointsAsync in interface AmazonTimestreamQueryAsyncpublic Future<DescribeEndpointsResult> describeEndpointsAsync(DescribeEndpointsRequest request, AsyncHandler<DescribeEndpointsRequest,DescribeEndpointsResult> asyncHandler)
AmazonTimestreamQueryAsyncDescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.
Because Timestream’s SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:
Your application uses a programming language that does not yet have SDK support
You require better control over the client-side implementation
For detailed information on how to use DescribeEndpoints, see The Endpoint Discovery Pattern and REST APIs.
describeEndpointsAsync in interface AmazonTimestreamQueryAsyncasyncHandler - 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<QueryResult> queryAsync(QueryRequest request)
AmazonTimestreamQueryAsyncQuery is a synchronous operation that enables you to execute a query. Query will timeout after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. The result set will be truncated to 1MB. Service quotas apply. For more information, see Quotas in the Timestream Developer Guide.
queryAsync in interface AmazonTimestreamQueryAsyncpublic Future<QueryResult> queryAsync(QueryRequest request, AsyncHandler<QueryRequest,QueryResult> asyncHandler)
AmazonTimestreamQueryAsyncQuery is a synchronous operation that enables you to execute a query. Query will timeout after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. The result set will be truncated to 1MB. Service quotas apply. For more information, see Quotas in the Timestream Developer Guide.
queryAsync in interface AmazonTimestreamQueryAsyncasyncHandler - 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 AmazonTimestreamQueryshutdown in class AmazonTimestreamQueryClient