Class AWSApplicationAutoScalingAsyncClient
- All Implemented Interfaces:
AWSApplicationAutoScaling
,AWSApplicationAutoScalingAsync
AsyncHandler
can be
used to receive notification when an asynchronous operation completes.
Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Auto Scaling.
At this time, Application Auto Scaling only supports scaling Amazon ECS services.
For example, you can use Application Auto Scaling to accomplish the following tasks:
-
Define scaling policies for automatically adjusting your application’s resources
-
Scale your resources in response to CloudWatch alarms
-
View history of your scaling events
-
Field Summary
Fields inherited from class com.amazonaws.services.applicationautoscaling.AWSApplicationAutoScalingClient
configFactory
Fields inherited from class com.amazonaws.AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new asynchronous client to invoke service methods on Application Auto Scaling.AWSApplicationAutoScalingAsyncClient
(AWSCredentials awsCredentials) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials.AWSApplicationAutoScalingAsyncClient
(AWSCredentialsProvider awsCredentialsProvider) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials provider.AWSApplicationAutoScalingAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the provided AWS account credentials provider and client configuration options.AWSApplicationAutoScalingAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials provider, executor service, and client configuration options.AWSApplicationAutoScalingAsyncClient
(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials provider and executor service.AWSApplicationAutoScalingAsyncClient
(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials, executor service, and client configuration options.AWSApplicationAutoScalingAsyncClient
(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials and executor service.AWSApplicationAutoScalingAsyncClient
(ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling. -
Method Summary
Modifier and TypeMethodDescriptionDeletes an Application Auto Scaling scaling policy that was previously created.deleteScalingPolicyAsync
(DeleteScalingPolicyRequest request, AsyncHandler<DeleteScalingPolicyRequest, DeleteScalingPolicyResult> asyncHandler) Deletes an Application Auto Scaling scaling policy that was previously created.Deregisters a scalable target that was previously registered.deregisterScalableTargetAsync
(DeregisterScalableTargetRequest request, AsyncHandler<DeregisterScalableTargetRequest, DeregisterScalableTargetResult> asyncHandler) Deregisters a scalable target that was previously registered.Provides descriptive information for scalable targets with a specified service namespace.describeScalableTargetsAsync
(DescribeScalableTargetsRequest request, AsyncHandler<DescribeScalableTargetsRequest, DescribeScalableTargetsResult> asyncHandler) Provides descriptive information for scalable targets with a specified service namespace.Provides descriptive information for scaling activities with a specified service namespace.describeScalingActivitiesAsync
(DescribeScalingActivitiesRequest request, AsyncHandler<DescribeScalingActivitiesRequest, DescribeScalingActivitiesResult> asyncHandler) Provides descriptive information for scaling activities with a specified service namespace.Provides descriptive information for scaling policies with a specified service namespace.describeScalingPoliciesAsync
(DescribeScalingPoliciesRequest request, AsyncHandler<DescribeScalingPoliciesRequest, DescribeScalingPoliciesResult> asyncHandler) Provides descriptive information for scaling policies with a specified service namespace.Returns the executor service used by this client to execute async requests.Creates or updates a policy for an existing Application Auto Scaling scalable target.putScalingPolicyAsync
(PutScalingPolicyRequest request, AsyncHandler<PutScalingPolicyRequest, PutScalingPolicyResult> asyncHandler) Creates or updates a policy for an existing Application Auto Scaling scalable target.Registers or updates a scalable target.registerScalableTargetAsync
(RegisterScalableTargetRequest request, AsyncHandler<RegisterScalableTargetRequest, RegisterScalableTargetResult> asyncHandler) Registers or updates a scalable target.void
shutdown()
Shuts down the client, releasing all managed resources.Methods inherited from class com.amazonaws.services.applicationautoscaling.AWSApplicationAutoScalingClient
deleteScalingPolicy, deregisterScalableTarget, describeScalableTargets, describeScalingActivities, describeScalingPolicies, getCachedResponseMetadata, putScalingPolicy, registerScalableTarget
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amazonaws.services.applicationautoscaling.AWSApplicationAutoScaling
deleteScalingPolicy, deregisterScalableTarget, describeScalableTargets, describeScalingActivities, describeScalingPolicies, getCachedResponseMetadata, putScalingPolicy, registerScalableTarget, setEndpoint, setRegion
-
Constructor Details
-
AWSApplicationAutoScalingAsyncClient
public AWSApplicationAutoScalingAsyncClient()Constructs a new asynchronous client to invoke service methods on Application Auto Scaling. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- See Also:
-
AWSApplicationAutoScalingAsyncClient
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections()
.- Parameters:
clientConfiguration
- The client configuration options controlling how this client connects to Application Auto Scaling (ex: proxy settings, retry counts, etc).- See Also:
-
AWSApplicationAutoScalingAsyncClient
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.- See Also:
-
AWSApplicationAutoScalingAsyncClient
public AWSApplicationAutoScalingAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials and executor service. Default client settings will be used.- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.
-
AWSApplicationAutoScalingAsyncClient
public AWSApplicationAutoScalingAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials, executor service, and client configuration options.- Parameters:
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.
-
AWSApplicationAutoScalingAsyncClient
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials provider. Default client settings will be used.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.- See Also:
-
AWSApplicationAutoScalingAsyncClient
public AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the provided AWS account credentials provider and client configuration options.Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections()
.- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).- See Also:
-
AWSApplicationAutoScalingAsyncClient
public AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials provider and executor service. Default client settings will be used.- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.
-
AWSApplicationAutoScalingAsyncClient
public AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified AWS account credentials provider, executor service, and client configuration options.- Parameters:
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.
-
-
Method Details
-
getExecutorService
Returns the executor service used by this client to execute async requests.- Returns:
- The executor service used by this client to execute async requests.
-
deleteScalingPolicyAsync
public Future<DeleteScalingPolicyResult> deleteScalingPolicyAsync(DeleteScalingPolicyRequest request) Description copied from interface:AWSApplicationAutoScalingAsync
Deletes an Application Auto Scaling scaling policy that was previously created. If you are no longer using a scaling policy, you can delete it with this operation.
Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm, even if it no longer has an associated action.
To create a new scaling policy or update an existing one, see PutScalingPolicy.
- Specified by:
deleteScalingPolicyAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-- Returns:
- A Java Future containing the result of the DeleteScalingPolicy operation returned by the service.
-
deleteScalingPolicyAsync
public Future<DeleteScalingPolicyResult> deleteScalingPolicyAsync(DeleteScalingPolicyRequest request, AsyncHandler<DeleteScalingPolicyRequest, DeleteScalingPolicyResult> asyncHandler) Description copied from interface:AWSApplicationAutoScalingAsync
Deletes an Application Auto Scaling scaling policy that was previously created. If you are no longer using a scaling policy, you can delete it with this operation.
Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm, even if it no longer has an associated action.
To create a new scaling policy or update an existing one, see PutScalingPolicy.
- Specified by:
deleteScalingPolicyAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-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.- Returns:
- A Java Future containing the result of the DeleteScalingPolicy operation returned by the service.
-
deregisterScalableTargetAsync
public Future<DeregisterScalableTargetResult> deregisterScalableTargetAsync(DeregisterScalableTargetRequest request) Description copied from interface:AWSApplicationAutoScalingAsync
Deregisters a scalable target that was previously registered. If you are no longer using a scalable target, you can delete it with this operation. When you deregister a scalable target, all of the scaling policies that are associated with that scalable target are deleted.
To create a new scalable target or update an existing one, see RegisterScalableTarget.
- Specified by:
deregisterScalableTargetAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-- Returns:
- A Java Future containing the result of the DeregisterScalableTarget operation returned by the service.
-
deregisterScalableTargetAsync
public Future<DeregisterScalableTargetResult> deregisterScalableTargetAsync(DeregisterScalableTargetRequest request, AsyncHandler<DeregisterScalableTargetRequest, DeregisterScalableTargetResult> asyncHandler) Description copied from interface:AWSApplicationAutoScalingAsync
Deregisters a scalable target that was previously registered. If you are no longer using a scalable target, you can delete it with this operation. When you deregister a scalable target, all of the scaling policies that are associated with that scalable target are deleted.
To create a new scalable target or update an existing one, see RegisterScalableTarget.
- Specified by:
deregisterScalableTargetAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-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.- Returns:
- A Java Future containing the result of the DeregisterScalableTarget operation returned by the service.
-
describeScalableTargetsAsync
public Future<DescribeScalableTargetsResult> describeScalableTargetsAsync(DescribeScalableTargetsRequest request) Description copied from interface:AWSApplicationAutoScalingAsync
Provides descriptive information for scalable targets with a specified service namespace.
You can filter the results in a service namespace with the
ResourceIds
andScalableDimension
parameters.To create a new scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.
- Specified by:
describeScalableTargetsAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-- Returns:
- A Java Future containing the result of the DescribeScalableTargets operation returned by the service.
-
describeScalableTargetsAsync
public Future<DescribeScalableTargetsResult> describeScalableTargetsAsync(DescribeScalableTargetsRequest request, AsyncHandler<DescribeScalableTargetsRequest, DescribeScalableTargetsResult> asyncHandler) Description copied from interface:AWSApplicationAutoScalingAsync
Provides descriptive information for scalable targets with a specified service namespace.
You can filter the results in a service namespace with the
ResourceIds
andScalableDimension
parameters.To create a new scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.
- Specified by:
describeScalableTargetsAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-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.- Returns:
- A Java Future containing the result of the DescribeScalableTargets operation returned by the service.
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request) Description copied from interface:AWSApplicationAutoScalingAsync
Provides descriptive information for scaling activities with a specified service namespace.
You can filter the results in a service namespace with the
ResourceId
andScalableDimension
parameters.Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the existing scaling policies for a service namespace, see DescribeScalingPolicies. To create a new scaling policy or update an existing one, see PutScalingPolicy.
- Specified by:
describeScalingActivitiesAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-- Returns:
- A Java Future containing the result of the DescribeScalingActivities operation returned by the service.
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, AsyncHandler<DescribeScalingActivitiesRequest, DescribeScalingActivitiesResult> asyncHandler) Description copied from interface:AWSApplicationAutoScalingAsync
Provides descriptive information for scaling activities with a specified service namespace.
You can filter the results in a service namespace with the
ResourceId
andScalableDimension
parameters.Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the existing scaling policies for a service namespace, see DescribeScalingPolicies. To create a new scaling policy or update an existing one, see PutScalingPolicy.
- Specified by:
describeScalingActivitiesAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-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.- Returns:
- A Java Future containing the result of the DescribeScalingActivities operation returned by the service.
-
describeScalingPoliciesAsync
public Future<DescribeScalingPoliciesResult> describeScalingPoliciesAsync(DescribeScalingPoliciesRequest request) Description copied from interface:AWSApplicationAutoScalingAsync
Provides descriptive information for scaling policies with a specified service namespace.
You can filter the results in a service namespace with the
ResourceId
,ScalableDimension
, andPolicyNames
parameters.To create a new scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.
- Specified by:
describeScalingPoliciesAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-- Returns:
- A Java Future containing the result of the DescribeScalingPolicies operation returned by the service.
-
describeScalingPoliciesAsync
public Future<DescribeScalingPoliciesResult> describeScalingPoliciesAsync(DescribeScalingPoliciesRequest request, AsyncHandler<DescribeScalingPoliciesRequest, DescribeScalingPoliciesResult> asyncHandler) Description copied from interface:AWSApplicationAutoScalingAsync
Provides descriptive information for scaling policies with a specified service namespace.
You can filter the results in a service namespace with the
ResourceId
,ScalableDimension
, andPolicyNames
parameters.To create a new scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.
- Specified by:
describeScalingPoliciesAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-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.- Returns:
- A Java Future containing the result of the DescribeScalingPolicies operation returned by the service.
-
putScalingPolicyAsync
Description copied from interface:AWSApplicationAutoScalingAsync
Creates or updates a policy for an existing Application Auto Scaling scalable target. Each scalable target is identified by service namespace, a resource ID, and a scalable dimension, and a scaling policy applies to a scalable target that is identified by those three attributes. You cannot create a scaling policy without first registering a scalable target with RegisterScalableTarget.
To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
You can view the existing scaling policies for a service namespace with DescribeScalingPolicies. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.
- Specified by:
putScalingPolicyAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-- Returns:
- A Java Future containing the result of the PutScalingPolicy operation returned by the service.
-
putScalingPolicyAsync
public Future<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest request, AsyncHandler<PutScalingPolicyRequest, PutScalingPolicyResult> asyncHandler) Description copied from interface:AWSApplicationAutoScalingAsync
Creates or updates a policy for an existing Application Auto Scaling scalable target. Each scalable target is identified by service namespace, a resource ID, and a scalable dimension, and a scaling policy applies to a scalable target that is identified by those three attributes. You cannot create a scaling policy without first registering a scalable target with RegisterScalableTarget.
To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
You can view the existing scaling policies for a service namespace with DescribeScalingPolicies. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.
- Specified by:
putScalingPolicyAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-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.- Returns:
- A Java Future containing the result of the PutScalingPolicy operation returned by the service.
-
registerScalableTargetAsync
public Future<RegisterScalableTargetResult> registerScalableTargetAsync(RegisterScalableTargetRequest request) Description copied from interface:AWSApplicationAutoScalingAsync
Registers or updates a scalable target. A scalable target is a resource that can be scaled up or down with Application Auto Scaling. After you have registered a scalable target, you can use this command to update the minimum and maximum values for your scalable dimension.
At this time, Application Auto Scaling only supports scaling Amazon ECS services.
After you register a scalable target with Application Auto Scaling, you can create and apply scaling policies to it with PutScalingPolicy. You can view the existing scaling policies for a service namespace with DescribeScalableTargets. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.
- Specified by:
registerScalableTargetAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-- Returns:
- A Java Future containing the result of the RegisterScalableTarget operation returned by the service.
-
registerScalableTargetAsync
public Future<RegisterScalableTargetResult> registerScalableTargetAsync(RegisterScalableTargetRequest request, AsyncHandler<RegisterScalableTargetRequest, RegisterScalableTargetResult> asyncHandler) Description copied from interface:AWSApplicationAutoScalingAsync
Registers or updates a scalable target. A scalable target is a resource that can be scaled up or down with Application Auto Scaling. After you have registered a scalable target, you can use this command to update the minimum and maximum values for your scalable dimension.
At this time, Application Auto Scaling only supports scaling Amazon ECS services.
After you register a scalable target with Application Auto Scaling, you can create and apply scaling policies to it with PutScalingPolicy. You can view the existing scaling policies for a service namespace with DescribeScalableTargets. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.
- Specified by:
registerScalableTargetAsync
in interfaceAWSApplicationAutoScalingAsync
- Parameters:
request
-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.- Returns:
- A Java Future containing the result of the RegisterScalableTarget operation returned by the service.
-
shutdown
public void shutdown()Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should callgetExecutorService().shutdown()
followed bygetExecutorService().awaitTermination()
prior to calling this method.- Specified by:
shutdown
in interfaceAWSApplicationAutoScaling
- Overrides:
shutdown
in classAmazonWebServiceClient
-