@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAppConfigDataAsyncClient extends AWSAppConfigDataClient implements AWSAppConfigDataAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Use the AppConfigData API, a capability of AWS AppConfig, to retrieve deployed configuration.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
builder, getCachedResponseMetadata, getLatestConfiguration, startConfigurationSession
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, getLatestConfiguration, startConfigurationSession
public static AWSAppConfigDataAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<GetLatestConfigurationResult> getLatestConfigurationAsync(GetLatestConfigurationRequest request)
AWSAppConfigDataAsync
Retrieves the latest deployed configuration. This API may return empty Configuration data if the client already has the latest version. See StartConfigurationSession to obtain an InitialConfigurationToken to call this API.
Each call to GetLatestConfiguration returns a new ConfigurationToken (NextPollConfigurationToken in the response). This new token MUST be provided to the next call to GetLatestConfiguration when polling for configuration updates.
To avoid excess charges, we recommend that you include the ClientConfigurationVersion
value with
every call to GetConfiguration
. This value must be saved on your client. Subsequent calls to
GetConfiguration
must pass this value by using the ClientConfigurationVersion
parameter.
getLatestConfigurationAsync
in interface AWSAppConfigDataAsync
request
- Request parameters for the GetLatestConfiguration APIpublic Future<GetLatestConfigurationResult> getLatestConfigurationAsync(GetLatestConfigurationRequest request, AsyncHandler<GetLatestConfigurationRequest,GetLatestConfigurationResult> asyncHandler)
AWSAppConfigDataAsync
Retrieves the latest deployed configuration. This API may return empty Configuration data if the client already has the latest version. See StartConfigurationSession to obtain an InitialConfigurationToken to call this API.
Each call to GetLatestConfiguration returns a new ConfigurationToken (NextPollConfigurationToken in the response). This new token MUST be provided to the next call to GetLatestConfiguration when polling for configuration updates.
To avoid excess charges, we recommend that you include the ClientConfigurationVersion
value with
every call to GetConfiguration
. This value must be saved on your client. Subsequent calls to
GetConfiguration
must pass this value by using the ClientConfigurationVersion
parameter.
getLatestConfigurationAsync
in interface AWSAppConfigDataAsync
request
- Request parameters for the GetLatestConfiguration APIasyncHandler
- 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<StartConfigurationSessionResult> startConfigurationSessionAsync(StartConfigurationSessionRequest request)
AWSAppConfigDataAsync
Starts a configuration session used to retrieve a deployed configuration. See the GetLatestConfiguration API for more details.
startConfigurationSessionAsync
in interface AWSAppConfigDataAsync
request
- Request parameters for the StartConfigurationSession API.public Future<StartConfigurationSessionResult> startConfigurationSessionAsync(StartConfigurationSessionRequest request, AsyncHandler<StartConfigurationSessionRequest,StartConfigurationSessionResult> asyncHandler)
AWSAppConfigDataAsync
Starts a configuration session used to retrieve a deployed configuration. See the GetLatestConfiguration API for more details.
startConfigurationSessionAsync
in interface AWSAppConfigDataAsync
request
- Request parameters for the StartConfigurationSession API.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 AWSAppConfigData
shutdown
in class AWSAppConfigDataClient