@ThreadSafe public class AWSBudgetsAsyncClient extends AWSBudgetsClient implements AWSBudgetsAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
All public APIs for AWS Budgets
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSBudgetsAsyncClient()
Constructs a new asynchronous client to invoke service methods on AWSBudgets.
|
AWSBudgetsAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AWSBudgets using the specified AWS account
credentials.
|
AWSBudgetsAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWSBudgets using the specified AWS account
credentials, executor service, and client configuration options.
|
AWSBudgetsAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWSBudgets using the specified AWS account
credentials and executor service.
|
AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AWSBudgets using the specified AWS account
credentials provider.
|
AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWSBudgets using the provided AWS account
credentials provider and client configuration options.
|
AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWSBudgets using the specified AWS account
credentials provider, executor service, and client configuration options.
|
AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWSBudgets using the specified AWS account
credentials provider and executor service.
|
AWSBudgetsAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWSBudgets.
|
createBudget, createNotification, createSubscriber, deleteBudget, deleteNotification, deleteSubscriber, describeBudget, describeBudgets, describeNotificationsForBudget, describeSubscribersForNotification, getCachedResponseMetadata, updateBudget, updateNotification, updateSubscriber
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createBudget, createNotification, createSubscriber, deleteBudget, deleteNotification, deleteSubscriber, describeBudget, describeBudgets, describeNotificationsForBudget, describeSubscribersForNotification, getCachedResponseMetadata, setEndpoint, setRegion, updateBudget, updateNotification, updateSubscriber
public AWSBudgetsAsyncClient()
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).
public AWSBudgetsAsyncClient(ClientConfiguration clientConfiguration)
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()
.
clientConfiguration
- The client configuration options controlling how this client connects to AWSBudgets (ex: proxy settings,
retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSBudgetsAsyncClient(AWSCredentials awsCredentials)
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).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)
public AWSBudgetsAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
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.public AWSBudgetsAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
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.public AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
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).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)
public AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
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()
.
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).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
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.public AWSBudgetsAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
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.public ExecutorService getExecutorService()
public Future<CreateBudgetResult> createBudgetAsync(CreateBudgetRequest request)
AWSBudgetsAsync
createBudgetAsync
in interface AWSBudgetsAsync
request
- Request of CreateBudgetpublic Future<CreateBudgetResult> createBudgetAsync(CreateBudgetRequest request, AsyncHandler<CreateBudgetRequest,CreateBudgetResult> asyncHandler)
AWSBudgetsAsync
createBudgetAsync
in interface AWSBudgetsAsync
request
- Request of CreateBudgetasyncHandler
- 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<CreateNotificationResult> createNotificationAsync(CreateNotificationRequest request)
AWSBudgetsAsync
createNotificationAsync
in interface AWSBudgetsAsync
request
- Request of CreateNotificationpublic Future<CreateNotificationResult> createNotificationAsync(CreateNotificationRequest request, AsyncHandler<CreateNotificationRequest,CreateNotificationResult> asyncHandler)
AWSBudgetsAsync
createNotificationAsync
in interface AWSBudgetsAsync
request
- Request of CreateNotificationasyncHandler
- 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<CreateSubscriberResult> createSubscriberAsync(CreateSubscriberRequest request)
AWSBudgetsAsync
createSubscriberAsync
in interface AWSBudgetsAsync
request
- Request of CreateSubscriberpublic Future<CreateSubscriberResult> createSubscriberAsync(CreateSubscriberRequest request, AsyncHandler<CreateSubscriberRequest,CreateSubscriberResult> asyncHandler)
AWSBudgetsAsync
createSubscriberAsync
in interface AWSBudgetsAsync
request
- Request of CreateSubscriberasyncHandler
- 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<DeleteBudgetResult> deleteBudgetAsync(DeleteBudgetRequest request)
AWSBudgetsAsync
deleteBudgetAsync
in interface AWSBudgetsAsync
request
- Request of DeleteBudgetpublic Future<DeleteBudgetResult> deleteBudgetAsync(DeleteBudgetRequest request, AsyncHandler<DeleteBudgetRequest,DeleteBudgetResult> asyncHandler)
AWSBudgetsAsync
deleteBudgetAsync
in interface AWSBudgetsAsync
request
- Request of DeleteBudgetasyncHandler
- 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<DeleteNotificationResult> deleteNotificationAsync(DeleteNotificationRequest request)
AWSBudgetsAsync
deleteNotificationAsync
in interface AWSBudgetsAsync
request
- Request of DeleteNotificationpublic Future<DeleteNotificationResult> deleteNotificationAsync(DeleteNotificationRequest request, AsyncHandler<DeleteNotificationRequest,DeleteNotificationResult> asyncHandler)
AWSBudgetsAsync
deleteNotificationAsync
in interface AWSBudgetsAsync
request
- Request of DeleteNotificationasyncHandler
- 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<DeleteSubscriberResult> deleteSubscriberAsync(DeleteSubscriberRequest request)
AWSBudgetsAsync
deleteSubscriberAsync
in interface AWSBudgetsAsync
request
- Request of DeleteSubscriberpublic Future<DeleteSubscriberResult> deleteSubscriberAsync(DeleteSubscriberRequest request, AsyncHandler<DeleteSubscriberRequest,DeleteSubscriberResult> asyncHandler)
AWSBudgetsAsync
deleteSubscriberAsync
in interface AWSBudgetsAsync
request
- Request of DeleteSubscriberasyncHandler
- 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<DescribeBudgetResult> describeBudgetAsync(DescribeBudgetRequest request)
AWSBudgetsAsync
describeBudgetAsync
in interface AWSBudgetsAsync
request
- Request of DescribeBudgetpublic Future<DescribeBudgetResult> describeBudgetAsync(DescribeBudgetRequest request, AsyncHandler<DescribeBudgetRequest,DescribeBudgetResult> asyncHandler)
AWSBudgetsAsync
describeBudgetAsync
in interface AWSBudgetsAsync
request
- Request of DescribeBudgetasyncHandler
- 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<DescribeBudgetsResult> describeBudgetsAsync(DescribeBudgetsRequest request)
AWSBudgetsAsync
describeBudgetsAsync
in interface AWSBudgetsAsync
request
- Request of DescribeBudgetspublic Future<DescribeBudgetsResult> describeBudgetsAsync(DescribeBudgetsRequest request, AsyncHandler<DescribeBudgetsRequest,DescribeBudgetsResult> asyncHandler)
AWSBudgetsAsync
describeBudgetsAsync
in interface AWSBudgetsAsync
request
- Request of DescribeBudgetsasyncHandler
- 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<DescribeNotificationsForBudgetResult> describeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request)
AWSBudgetsAsync
describeNotificationsForBudgetAsync
in interface AWSBudgetsAsync
request
- Request of DescribeNotificationsForBudgetpublic Future<DescribeNotificationsForBudgetResult> describeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request, AsyncHandler<DescribeNotificationsForBudgetRequest,DescribeNotificationsForBudgetResult> asyncHandler)
AWSBudgetsAsync
describeNotificationsForBudgetAsync
in interface AWSBudgetsAsync
request
- Request of DescribeNotificationsForBudgetasyncHandler
- 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<DescribeSubscribersForNotificationResult> describeSubscribersForNotificationAsync(DescribeSubscribersForNotificationRequest request)
AWSBudgetsAsync
describeSubscribersForNotificationAsync
in interface AWSBudgetsAsync
request
- Request of DescribeSubscribersForNotificationpublic Future<DescribeSubscribersForNotificationResult> describeSubscribersForNotificationAsync(DescribeSubscribersForNotificationRequest request, AsyncHandler<DescribeSubscribersForNotificationRequest,DescribeSubscribersForNotificationResult> asyncHandler)
AWSBudgetsAsync
describeSubscribersForNotificationAsync
in interface AWSBudgetsAsync
request
- Request of DescribeSubscribersForNotificationasyncHandler
- 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<UpdateBudgetResult> updateBudgetAsync(UpdateBudgetRequest request)
AWSBudgetsAsync
updateBudgetAsync
in interface AWSBudgetsAsync
request
- Request of UpdateBudgetpublic Future<UpdateBudgetResult> updateBudgetAsync(UpdateBudgetRequest request, AsyncHandler<UpdateBudgetRequest,UpdateBudgetResult> asyncHandler)
AWSBudgetsAsync
updateBudgetAsync
in interface AWSBudgetsAsync
request
- Request of UpdateBudgetasyncHandler
- 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<UpdateNotificationResult> updateNotificationAsync(UpdateNotificationRequest request)
AWSBudgetsAsync
updateNotificationAsync
in interface AWSBudgetsAsync
request
- Request of UpdateNotificationpublic Future<UpdateNotificationResult> updateNotificationAsync(UpdateNotificationRequest request, AsyncHandler<UpdateNotificationRequest,UpdateNotificationResult> asyncHandler)
AWSBudgetsAsync
updateNotificationAsync
in interface AWSBudgetsAsync
request
- Request of UpdateNotificationasyncHandler
- 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<UpdateSubscriberResult> updateSubscriberAsync(UpdateSubscriberRequest request)
AWSBudgetsAsync
updateSubscriberAsync
in interface AWSBudgetsAsync
request
- Request of UpdateSubscriberpublic Future<UpdateSubscriberResult> updateSubscriberAsync(UpdateSubscriberRequest request, AsyncHandler<UpdateSubscriberRequest,UpdateSubscriberResult> asyncHandler)
AWSBudgetsAsync
updateSubscriberAsync
in interface AWSBudgetsAsync
request
- Request of UpdateSubscriberasyncHandler
- 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 AWSBudgets
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.