com.amazonaws.services.gamelift.AmazonGameLiftAsyncClient Maven / Gradle / Ivy
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.gamelift;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.gamelift.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
/**
* Client for accessing Amazon GameLift asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*
*
* Amazon GameLift provides solutions for hosting session-based multiplayer game servers in the cloud, including tools
* for deploying, operating, and scaling game servers. Built on Amazon Web Services global computing infrastructure,
* GameLift helps you deliver high-performance, high-reliability, low-cost game servers while dynamically scaling your
* resource usage to meet player demand.
*
*
* About Amazon GameLift solutions
*
*
* Get more information on these Amazon GameLift solutions in the Amazon GameLift Developer Guide.
*
*
* -
*
* Amazon GameLift managed hosting -- Amazon GameLift offers a fully managed service to set up and maintain computing
* machines for hosting, manage game session and player session life cycle, and handle security, storage, and
* performance tracking. You can use automatic scaling tools to balance player demand and hosting costs, configure your
* game session management to minimize player latency, and add FlexMatch for matchmaking.
*
*
* -
*
* Managed hosting with Realtime Servers -- With Amazon GameLift Realtime Servers, you can quickly configure and set up
* ready-to-go game servers for your game. Realtime Servers provides a game server framework with core Amazon GameLift
* infrastructure already built in. Then use the full range of Amazon GameLift managed hosting features, including
* FlexMatch, for your game.
*
*
* -
*
* Amazon GameLift FleetIQ -- Use Amazon GameLift FleetIQ as a standalone service while hosting your games using EC2
* instances and Auto Scaling groups. Amazon GameLift FleetIQ provides optimizations for game hosting, including
* boosting the viability of low-cost Spot Instances gaming. For a complete solution, pair the Amazon GameLift FleetIQ
* and FlexMatch standalone services.
*
*
* -
*
* Amazon GameLift FlexMatch -- Add matchmaking to your game hosting solution. FlexMatch is a customizable matchmaking
* service for multiplayer games. Use FlexMatch as integrated with Amazon GameLift managed hosting or incorporate
* FlexMatch as a standalone service into your own hosting solution.
*
*
*
*
* About this API Reference
*
*
* This reference guide describes the low-level service API for Amazon GameLift. With each topic in this guide, you can
* find links to language-specific SDK guides and the Amazon Web Services CLI reference. Useful links:
*
*
* -
*
*
* -
*
*
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonGameLiftAsyncClient extends AmazonGameLiftClient implements AmazonGameLiftAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift. 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 com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AmazonGameLiftAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift. 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 {@code ClientConfiguration.getMaxConnections()}.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to Amazon GameLift (ex: proxy
* settings, retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonGameLiftAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift 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).
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonGameLiftAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift using the specified AWS account
* credentials and executor service. Default client settings will be used.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonGameLiftAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonGameLiftAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift using the specified AWS account
* credentials, executor service, and client configuration options.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonGameLiftAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonGameLiftAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonGameLiftAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift 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).
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AmazonGameLiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift 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 {@code ClientConfiguration.getMaxConnections()}.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonGameLiftAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AmazonGameLiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift using the specified AWS account
* credentials provider and executor service. Default client settings will be used.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonGameLiftAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonGameLiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift using the specified AWS account
* credentials provider, executor service, and client configuration options.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AmazonGameLiftAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AmazonGameLiftAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AmazonGameLiftAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AmazonGameLiftAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AmazonGameLiftAsyncClientBuilder asyncBuilder() {
return AmazonGameLiftAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonGameLiftAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon GameLift using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AmazonGameLiftAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) {
super(asyncClientParams, endpointDiscoveryEnabled);
this.executorService = asyncClientParams.getExecutor();
}
/**
* Returns the executor service used by this client to execute async requests.
*
* @return The executor service used by this client to execute async requests.
*/
public ExecutorService getExecutorService() {
return executorService;
}
@Override
public java.util.concurrent.Future acceptMatchAsync(AcceptMatchRequest request) {
return acceptMatchAsync(request, null);
}
@Override
public java.util.concurrent.Future acceptMatchAsync(final AcceptMatchRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AcceptMatchRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AcceptMatchResult call() throws Exception {
AcceptMatchResult result = null;
try {
result = executeAcceptMatch(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future claimGameServerAsync(ClaimGameServerRequest request) {
return claimGameServerAsync(request, null);
}
@Override
public java.util.concurrent.Future claimGameServerAsync(final ClaimGameServerRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ClaimGameServerRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ClaimGameServerResult call() throws Exception {
ClaimGameServerResult result = null;
try {
result = executeClaimGameServer(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createAliasAsync(CreateAliasRequest request) {
return createAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future createAliasAsync(final CreateAliasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateAliasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateAliasResult call() throws Exception {
CreateAliasResult result = null;
try {
result = executeCreateAlias(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createBuildAsync(CreateBuildRequest request) {
return createBuildAsync(request, null);
}
@Override
public java.util.concurrent.Future createBuildAsync(final CreateBuildRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateBuildRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateBuildResult call() throws Exception {
CreateBuildResult result = null;
try {
result = executeCreateBuild(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createContainerGroupDefinitionAsync(CreateContainerGroupDefinitionRequest request) {
return createContainerGroupDefinitionAsync(request, null);
}
@Override
public java.util.concurrent.Future createContainerGroupDefinitionAsync(
final CreateContainerGroupDefinitionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateContainerGroupDefinitionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateContainerGroupDefinitionResult call() throws Exception {
CreateContainerGroupDefinitionResult result = null;
try {
result = executeCreateContainerGroupDefinition(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createFleetAsync(CreateFleetRequest request) {
return createFleetAsync(request, null);
}
@Override
public java.util.concurrent.Future createFleetAsync(final CreateFleetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateFleetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateFleetResult call() throws Exception {
CreateFleetResult result = null;
try {
result = executeCreateFleet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createFleetLocationsAsync(CreateFleetLocationsRequest request) {
return createFleetLocationsAsync(request, null);
}
@Override
public java.util.concurrent.Future createFleetLocationsAsync(final CreateFleetLocationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateFleetLocationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateFleetLocationsResult call() throws Exception {
CreateFleetLocationsResult result = null;
try {
result = executeCreateFleetLocations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createGameServerGroupAsync(CreateGameServerGroupRequest request) {
return createGameServerGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createGameServerGroupAsync(final CreateGameServerGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateGameServerGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateGameServerGroupResult call() throws Exception {
CreateGameServerGroupResult result = null;
try {
result = executeCreateGameServerGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createGameSessionAsync(CreateGameSessionRequest request) {
return createGameSessionAsync(request, null);
}
@Override
public java.util.concurrent.Future createGameSessionAsync(final CreateGameSessionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateGameSessionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateGameSessionResult call() throws Exception {
CreateGameSessionResult result = null;
try {
result = executeCreateGameSession(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createGameSessionQueueAsync(CreateGameSessionQueueRequest request) {
return createGameSessionQueueAsync(request, null);
}
@Override
public java.util.concurrent.Future createGameSessionQueueAsync(final CreateGameSessionQueueRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateGameSessionQueueRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateGameSessionQueueResult call() throws Exception {
CreateGameSessionQueueResult result = null;
try {
result = executeCreateGameSessionQueue(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createLocationAsync(CreateLocationRequest request) {
return createLocationAsync(request, null);
}
@Override
public java.util.concurrent.Future createLocationAsync(final CreateLocationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateLocationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateLocationResult call() throws Exception {
CreateLocationResult result = null;
try {
result = executeCreateLocation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createMatchmakingConfigurationAsync(CreateMatchmakingConfigurationRequest request) {
return createMatchmakingConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future createMatchmakingConfigurationAsync(
final CreateMatchmakingConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateMatchmakingConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateMatchmakingConfigurationResult call() throws Exception {
CreateMatchmakingConfigurationResult result = null;
try {
result = executeCreateMatchmakingConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createMatchmakingRuleSetAsync(CreateMatchmakingRuleSetRequest request) {
return createMatchmakingRuleSetAsync(request, null);
}
@Override
public java.util.concurrent.Future createMatchmakingRuleSetAsync(final CreateMatchmakingRuleSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateMatchmakingRuleSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateMatchmakingRuleSetResult call() throws Exception {
CreateMatchmakingRuleSetResult result = null;
try {
result = executeCreateMatchmakingRuleSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createPlayerSessionAsync(CreatePlayerSessionRequest request) {
return createPlayerSessionAsync(request, null);
}
@Override
public java.util.concurrent.Future createPlayerSessionAsync(final CreatePlayerSessionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreatePlayerSessionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreatePlayerSessionResult call() throws Exception {
CreatePlayerSessionResult result = null;
try {
result = executeCreatePlayerSession(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createPlayerSessionsAsync(CreatePlayerSessionsRequest request) {
return createPlayerSessionsAsync(request, null);
}
@Override
public java.util.concurrent.Future createPlayerSessionsAsync(final CreatePlayerSessionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreatePlayerSessionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreatePlayerSessionsResult call() throws Exception {
CreatePlayerSessionsResult result = null;
try {
result = executeCreatePlayerSessions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createScriptAsync(CreateScriptRequest request) {
return createScriptAsync(request, null);
}
@Override
public java.util.concurrent.Future createScriptAsync(final CreateScriptRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateScriptRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateScriptResult call() throws Exception {
CreateScriptResult result = null;
try {
result = executeCreateScript(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createVpcPeeringAuthorizationAsync(CreateVpcPeeringAuthorizationRequest request) {
return createVpcPeeringAuthorizationAsync(request, null);
}
@Override
public java.util.concurrent.Future createVpcPeeringAuthorizationAsync(
final CreateVpcPeeringAuthorizationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateVpcPeeringAuthorizationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateVpcPeeringAuthorizationResult call() throws Exception {
CreateVpcPeeringAuthorizationResult result = null;
try {
result = executeCreateVpcPeeringAuthorization(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createVpcPeeringConnectionAsync(CreateVpcPeeringConnectionRequest request) {
return createVpcPeeringConnectionAsync(request, null);
}
@Override
public java.util.concurrent.Future createVpcPeeringConnectionAsync(final CreateVpcPeeringConnectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateVpcPeeringConnectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateVpcPeeringConnectionResult call() throws Exception {
CreateVpcPeeringConnectionResult result = null;
try {
result = executeCreateVpcPeeringConnection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAliasAsync(DeleteAliasRequest request) {
return deleteAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAliasAsync(final DeleteAliasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAliasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAliasResult call() throws Exception {
DeleteAliasResult result = null;
try {
result = executeDeleteAlias(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBuildAsync(DeleteBuildRequest request) {
return deleteBuildAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBuildAsync(final DeleteBuildRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBuildRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBuildResult call() throws Exception {
DeleteBuildResult result = null;
try {
result = executeDeleteBuild(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteContainerGroupDefinitionAsync(DeleteContainerGroupDefinitionRequest request) {
return deleteContainerGroupDefinitionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteContainerGroupDefinitionAsync(
final DeleteContainerGroupDefinitionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteContainerGroupDefinitionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteContainerGroupDefinitionResult call() throws Exception {
DeleteContainerGroupDefinitionResult result = null;
try {
result = executeDeleteContainerGroupDefinition(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFleetAsync(DeleteFleetRequest request) {
return deleteFleetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFleetAsync(final DeleteFleetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFleetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFleetResult call() throws Exception {
DeleteFleetResult result = null;
try {
result = executeDeleteFleet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFleetLocationsAsync(DeleteFleetLocationsRequest request) {
return deleteFleetLocationsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFleetLocationsAsync(final DeleteFleetLocationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFleetLocationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFleetLocationsResult call() throws Exception {
DeleteFleetLocationsResult result = null;
try {
result = executeDeleteFleetLocations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteGameServerGroupAsync(DeleteGameServerGroupRequest request) {
return deleteGameServerGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteGameServerGroupAsync(final DeleteGameServerGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteGameServerGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteGameServerGroupResult call() throws Exception {
DeleteGameServerGroupResult result = null;
try {
result = executeDeleteGameServerGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteGameSessionQueueAsync(DeleteGameSessionQueueRequest request) {
return deleteGameSessionQueueAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteGameSessionQueueAsync(final DeleteGameSessionQueueRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteGameSessionQueueRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteGameSessionQueueResult call() throws Exception {
DeleteGameSessionQueueResult result = null;
try {
result = executeDeleteGameSessionQueue(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteLocationAsync(DeleteLocationRequest request) {
return deleteLocationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteLocationAsync(final DeleteLocationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteLocationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteLocationResult call() throws Exception {
DeleteLocationResult result = null;
try {
result = executeDeleteLocation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteMatchmakingConfigurationAsync(DeleteMatchmakingConfigurationRequest request) {
return deleteMatchmakingConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteMatchmakingConfigurationAsync(
final DeleteMatchmakingConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteMatchmakingConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteMatchmakingConfigurationResult call() throws Exception {
DeleteMatchmakingConfigurationResult result = null;
try {
result = executeDeleteMatchmakingConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteMatchmakingRuleSetAsync(DeleteMatchmakingRuleSetRequest request) {
return deleteMatchmakingRuleSetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteMatchmakingRuleSetAsync(final DeleteMatchmakingRuleSetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteMatchmakingRuleSetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteMatchmakingRuleSetResult call() throws Exception {
DeleteMatchmakingRuleSetResult result = null;
try {
result = executeDeleteMatchmakingRuleSet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteScalingPolicyAsync(DeleteScalingPolicyRequest request) {
return deleteScalingPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteScalingPolicyAsync(final DeleteScalingPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteScalingPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteScalingPolicyResult call() throws Exception {
DeleteScalingPolicyResult result = null;
try {
result = executeDeleteScalingPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteScriptAsync(DeleteScriptRequest request) {
return deleteScriptAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteScriptAsync(final DeleteScriptRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteScriptRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteScriptResult call() throws Exception {
DeleteScriptResult result = null;
try {
result = executeDeleteScript(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteVpcPeeringAuthorizationAsync(DeleteVpcPeeringAuthorizationRequest request) {
return deleteVpcPeeringAuthorizationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteVpcPeeringAuthorizationAsync(
final DeleteVpcPeeringAuthorizationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteVpcPeeringAuthorizationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteVpcPeeringAuthorizationResult call() throws Exception {
DeleteVpcPeeringAuthorizationResult result = null;
try {
result = executeDeleteVpcPeeringAuthorization(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteVpcPeeringConnectionAsync(DeleteVpcPeeringConnectionRequest request) {
return deleteVpcPeeringConnectionAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteVpcPeeringConnectionAsync(final DeleteVpcPeeringConnectionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteVpcPeeringConnectionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteVpcPeeringConnectionResult call() throws Exception {
DeleteVpcPeeringConnectionResult result = null;
try {
result = executeDeleteVpcPeeringConnection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deregisterComputeAsync(DeregisterComputeRequest request) {
return deregisterComputeAsync(request, null);
}
@Override
public java.util.concurrent.Future deregisterComputeAsync(final DeregisterComputeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterComputeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterComputeResult call() throws Exception {
DeregisterComputeResult result = null;
try {
result = executeDeregisterCompute(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deregisterGameServerAsync(DeregisterGameServerRequest request) {
return deregisterGameServerAsync(request, null);
}
@Override
public java.util.concurrent.Future deregisterGameServerAsync(final DeregisterGameServerRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterGameServerRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterGameServerResult call() throws Exception {
DeregisterGameServerResult result = null;
try {
result = executeDeregisterGameServer(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAliasAsync(DescribeAliasRequest request) {
return describeAliasAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAliasAsync(final DescribeAliasRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAliasRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAliasResult call() throws Exception {
DescribeAliasResult result = null;
try {
result = executeDescribeAlias(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeBuildAsync(DescribeBuildRequest request) {
return describeBuildAsync(request, null);
}
@Override
public java.util.concurrent.Future describeBuildAsync(final DescribeBuildRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeBuildRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeBuildResult call() throws Exception {
DescribeBuildResult result = null;
try {
result = executeDescribeBuild(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeComputeAsync(DescribeComputeRequest request) {
return describeComputeAsync(request, null);
}
@Override
public java.util.concurrent.Future describeComputeAsync(final DescribeComputeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeComputeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeComputeResult call() throws Exception {
DescribeComputeResult result = null;
try {
result = executeDescribeCompute(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeContainerGroupDefinitionAsync(
DescribeContainerGroupDefinitionRequest request) {
return describeContainerGroupDefinitionAsync(request, null);
}
@Override
public java.util.concurrent.Future describeContainerGroupDefinitionAsync(
final DescribeContainerGroupDefinitionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeContainerGroupDefinitionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeContainerGroupDefinitionResult call() throws Exception {
DescribeContainerGroupDefinitionResult result = null;
try {
result = executeDescribeContainerGroupDefinition(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeEC2InstanceLimitsAsync(DescribeEC2InstanceLimitsRequest request) {
return describeEC2InstanceLimitsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeEC2InstanceLimitsAsync(final DescribeEC2InstanceLimitsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeEC2InstanceLimitsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeEC2InstanceLimitsResult call() throws Exception {
DescribeEC2InstanceLimitsResult result = null;
try {
result = executeDescribeEC2InstanceLimits(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetAttributesAsync(DescribeFleetAttributesRequest request) {
return describeFleetAttributesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetAttributesAsync(final DescribeFleetAttributesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetAttributesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetAttributesResult call() throws Exception {
DescribeFleetAttributesResult result = null;
try {
result = executeDescribeFleetAttributes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetCapacityAsync(DescribeFleetCapacityRequest request) {
return describeFleetCapacityAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetCapacityAsync(final DescribeFleetCapacityRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetCapacityRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetCapacityResult call() throws Exception {
DescribeFleetCapacityResult result = null;
try {
result = executeDescribeFleetCapacity(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetEventsAsync(DescribeFleetEventsRequest request) {
return describeFleetEventsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetEventsAsync(final DescribeFleetEventsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetEventsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetEventsResult call() throws Exception {
DescribeFleetEventsResult result = null;
try {
result = executeDescribeFleetEvents(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetLocationAttributesAsync(
DescribeFleetLocationAttributesRequest request) {
return describeFleetLocationAttributesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetLocationAttributesAsync(
final DescribeFleetLocationAttributesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetLocationAttributesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetLocationAttributesResult call() throws Exception {
DescribeFleetLocationAttributesResult result = null;
try {
result = executeDescribeFleetLocationAttributes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetLocationCapacityAsync(DescribeFleetLocationCapacityRequest request) {
return describeFleetLocationCapacityAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetLocationCapacityAsync(
final DescribeFleetLocationCapacityRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetLocationCapacityRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetLocationCapacityResult call() throws Exception {
DescribeFleetLocationCapacityResult result = null;
try {
result = executeDescribeFleetLocationCapacity(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetLocationUtilizationAsync(
DescribeFleetLocationUtilizationRequest request) {
return describeFleetLocationUtilizationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetLocationUtilizationAsync(
final DescribeFleetLocationUtilizationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetLocationUtilizationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetLocationUtilizationResult call() throws Exception {
DescribeFleetLocationUtilizationResult result = null;
try {
result = executeDescribeFleetLocationUtilization(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetPortSettingsAsync(DescribeFleetPortSettingsRequest request) {
return describeFleetPortSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetPortSettingsAsync(final DescribeFleetPortSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetPortSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetPortSettingsResult call() throws Exception {
DescribeFleetPortSettingsResult result = null;
try {
result = executeDescribeFleetPortSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFleetUtilizationAsync(DescribeFleetUtilizationRequest request) {
return describeFleetUtilizationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFleetUtilizationAsync(final DescribeFleetUtilizationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetUtilizationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetUtilizationResult call() throws Exception {
DescribeFleetUtilizationResult result = null;
try {
result = executeDescribeFleetUtilization(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGameServerAsync(DescribeGameServerRequest request) {
return describeGameServerAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGameServerAsync(final DescribeGameServerRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGameServerRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGameServerResult call() throws Exception {
DescribeGameServerResult result = null;
try {
result = executeDescribeGameServer(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGameServerGroupAsync(DescribeGameServerGroupRequest request) {
return describeGameServerGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGameServerGroupAsync(final DescribeGameServerGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGameServerGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGameServerGroupResult call() throws Exception {
DescribeGameServerGroupResult result = null;
try {
result = executeDescribeGameServerGroup(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGameServerInstancesAsync(DescribeGameServerInstancesRequest request) {
return describeGameServerInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGameServerInstancesAsync(final DescribeGameServerInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGameServerInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGameServerInstancesResult call() throws Exception {
DescribeGameServerInstancesResult result = null;
try {
result = executeDescribeGameServerInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGameSessionDetailsAsync(DescribeGameSessionDetailsRequest request) {
return describeGameSessionDetailsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGameSessionDetailsAsync(final DescribeGameSessionDetailsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGameSessionDetailsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGameSessionDetailsResult call() throws Exception {
DescribeGameSessionDetailsResult result = null;
try {
result = executeDescribeGameSessionDetails(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGameSessionPlacementAsync(DescribeGameSessionPlacementRequest request) {
return describeGameSessionPlacementAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGameSessionPlacementAsync(final DescribeGameSessionPlacementRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGameSessionPlacementRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGameSessionPlacementResult call() throws Exception {
DescribeGameSessionPlacementResult result = null;
try {
result = executeDescribeGameSessionPlacement(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGameSessionQueuesAsync(DescribeGameSessionQueuesRequest request) {
return describeGameSessionQueuesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGameSessionQueuesAsync(final DescribeGameSessionQueuesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGameSessionQueuesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGameSessionQueuesResult call() throws Exception {
DescribeGameSessionQueuesResult result = null;
try {
result = executeDescribeGameSessionQueues(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGameSessionsAsync(DescribeGameSessionsRequest request) {
return describeGameSessionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGameSessionsAsync(final DescribeGameSessionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGameSessionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGameSessionsResult call() throws Exception {
DescribeGameSessionsResult result = null;
try {
result = executeDescribeGameSessions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeInstancesAsync(DescribeInstancesRequest request) {
return describeInstancesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeInstancesAsync(final DescribeInstancesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeInstancesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeInstancesResult call() throws Exception {
DescribeInstancesResult result = null;
try {
result = executeDescribeInstances(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMatchmakingAsync(DescribeMatchmakingRequest request) {
return describeMatchmakingAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMatchmakingAsync(final DescribeMatchmakingRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMatchmakingRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMatchmakingResult call() throws Exception {
DescribeMatchmakingResult result = null;
try {
result = executeDescribeMatchmaking(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMatchmakingConfigurationsAsync(
DescribeMatchmakingConfigurationsRequest request) {
return describeMatchmakingConfigurationsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMatchmakingConfigurationsAsync(
final DescribeMatchmakingConfigurationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMatchmakingConfigurationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMatchmakingConfigurationsResult call() throws Exception {
DescribeMatchmakingConfigurationsResult result = null;
try {
result = executeDescribeMatchmakingConfigurations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMatchmakingRuleSetsAsync(DescribeMatchmakingRuleSetsRequest request) {
return describeMatchmakingRuleSetsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMatchmakingRuleSetsAsync(final DescribeMatchmakingRuleSetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMatchmakingRuleSetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMatchmakingRuleSetsResult call() throws Exception {
DescribeMatchmakingRuleSetsResult result = null;
try {
result = executeDescribeMatchmakingRuleSets(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describePlayerSessionsAsync(DescribePlayerSessionsRequest request) {
return describePlayerSessionsAsync(request, null);
}
@Override
public java.util.concurrent.Future describePlayerSessionsAsync(final DescribePlayerSessionsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePlayerSessionsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePlayerSessionsResult call() throws Exception {
DescribePlayerSessionsResult result = null;
try {
result = executeDescribePlayerSessions(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeRuntimeConfigurationAsync(DescribeRuntimeConfigurationRequest request) {
return describeRuntimeConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeRuntimeConfigurationAsync(final DescribeRuntimeConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRuntimeConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRuntimeConfigurationResult call() throws Exception {
DescribeRuntimeConfigurationResult result = null;
try {
result = executeDescribeRuntimeConfiguration(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeScalingPoliciesAsync(DescribeScalingPoliciesRequest request) {
return describeScalingPoliciesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeScalingPoliciesAsync(final DescribeScalingPoliciesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeScalingPoliciesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeScalingPoliciesResult call() throws Exception {
DescribeScalingPoliciesResult result = null;
try {
result = executeDescribeScalingPolicies(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeScriptAsync(DescribeScriptRequest request) {
return describeScriptAsync(request, null);
}
@Override
public java.util.concurrent.Future describeScriptAsync(final DescribeScriptRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeScriptRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeScriptResult call() throws Exception {
DescribeScriptResult result = null;
try {
result = executeDescribeScript(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeVpcPeeringAuthorizationsAsync(
DescribeVpcPeeringAuthorizationsRequest request) {
return describeVpcPeeringAuthorizationsAsync(request, null);
}
@Override
public java.util.concurrent.Future