@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSAppConfigDataAsync extends AWSAppConfigData
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSAppConfigDataAsync
instead.
Use the AppConfigData API, a capability of AWS AppConfig, to retrieve deployed configuration.
ENDPOINT_PREFIX
getCachedResponseMetadata, getLatestConfiguration, shutdown, startConfigurationSession
Future<GetLatestConfigurationResult> getLatestConfigurationAsync(GetLatestConfigurationRequest getLatestConfigurationRequest)
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.
getLatestConfigurationRequest
- Request parameters for the GetLatestConfiguration APIFuture<GetLatestConfigurationResult> getLatestConfigurationAsync(GetLatestConfigurationRequest getLatestConfigurationRequest, AsyncHandler<GetLatestConfigurationRequest,GetLatestConfigurationResult> asyncHandler)
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.
getLatestConfigurationRequest
- 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.Future<StartConfigurationSessionResult> startConfigurationSessionAsync(StartConfigurationSessionRequest startConfigurationSessionRequest)
Starts a configuration session used to retrieve a deployed configuration. See the GetLatestConfiguration API for more details.
startConfigurationSessionRequest
- Request parameters for the StartConfigurationSession API.Future<StartConfigurationSessionResult> startConfigurationSessionAsync(StartConfigurationSessionRequest startConfigurationSessionRequest, AsyncHandler<StartConfigurationSessionRequest,StartConfigurationSessionResult> asyncHandler)
Starts a configuration session used to retrieve a deployed configuration. See the GetLatestConfiguration API for more details.
startConfigurationSessionRequest
- 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.