@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_METRIC
ENDPOINT_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, query
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
cancelQuery, describeEndpoints, getCachedResponseMetadata, query
public 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 AmazonTimestreamQueryAsync
public 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 AmazonTimestreamQueryAsync
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<DescribeEndpointsResult> describeEndpointsAsync(DescribeEndpointsRequest request)
AmazonTimestreamQueryAsync
DescribeEndpoints 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 AmazonTimestreamQueryAsync
public Future<DescribeEndpointsResult> describeEndpointsAsync(DescribeEndpointsRequest request, AsyncHandler<DescribeEndpointsRequest,DescribeEndpointsResult> asyncHandler)
AmazonTimestreamQueryAsync
DescribeEndpoints 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 AmazonTimestreamQueryAsync
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<QueryResult> queryAsync(QueryRequest request)
AmazonTimestreamQueryAsync
Query 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 AmazonTimestreamQueryAsync
public Future<QueryResult> queryAsync(QueryRequest request, AsyncHandler<QueryRequest,QueryResult> asyncHandler)
AmazonTimestreamQueryAsync
Query 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 AmazonTimestreamQueryAsync
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 AmazonTimestreamQuery
shutdown
in class AmazonTimestreamQueryClient