@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonForecastQueryAsyncClient extends AmazonForecastQueryClient implements AmazonForecastQueryAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Provides APIs for creating and managing Amazon Forecast resources.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonForecastQueryAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<QueryForecastResult> |
queryForecastAsync(QueryForecastRequest request)
Retrieves a forecast filtered by the supplied criteria.
|
Future<QueryForecastResult> |
queryForecastAsync(QueryForecastRequest request,
AsyncHandler<QueryForecastRequest,QueryForecastResult> asyncHandler)
Retrieves a forecast filtered by the supplied criteria.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, queryForecast
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
getCachedResponseMetadata, queryForecast
public static AmazonForecastQueryAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<QueryForecastResult> queryForecastAsync(QueryForecastRequest request)
AmazonForecastQueryAsync
Retrieves a forecast filtered by the supplied criteria.
The criteria is a key-value pair. The key is either item_id
(or the equivalent non-timestamp,
non-target field) from the TARGET_TIME_SERIES
dataset, or one of the forecast dimensions specified
as part of the FeaturizationConfig
object.
By default, the complete date range of the filtered forecast is returned. Optionally, you can request a specific date range within the forecast.
The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.
queryForecastAsync
in interface AmazonForecastQueryAsync
public Future<QueryForecastResult> queryForecastAsync(QueryForecastRequest request, AsyncHandler<QueryForecastRequest,QueryForecastResult> asyncHandler)
AmazonForecastQueryAsync
Retrieves a forecast filtered by the supplied criteria.
The criteria is a key-value pair. The key is either item_id
(or the equivalent non-timestamp,
non-target field) from the TARGET_TIME_SERIES
dataset, or one of the forecast dimensions specified
as part of the FeaturizationConfig
object.
By default, the complete date range of the filtered forecast is returned. Optionally, you can request a specific date range within the forecast.
The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.
queryForecastAsync
in interface AmazonForecastQueryAsync
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 AmazonForecastQuery
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.