All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 describeVpcPeeringAuthorizationsAsync( final DescribeVpcPeeringAuthorizationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeVpcPeeringAuthorizationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeVpcPeeringAuthorizationsResult call() throws Exception { DescribeVpcPeeringAuthorizationsResult result = null; try { result = executeDescribeVpcPeeringAuthorizations(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 describeVpcPeeringConnectionsAsync(DescribeVpcPeeringConnectionsRequest request) { return describeVpcPeeringConnectionsAsync(request, null); } @Override public java.util.concurrent.Future describeVpcPeeringConnectionsAsync( final DescribeVpcPeeringConnectionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeVpcPeeringConnectionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeVpcPeeringConnectionsResult call() throws Exception { DescribeVpcPeeringConnectionsResult result = null; try { result = executeDescribeVpcPeeringConnections(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 getComputeAccessAsync(GetComputeAccessRequest request) { return getComputeAccessAsync(request, null); } @Override public java.util.concurrent.Future getComputeAccessAsync(final GetComputeAccessRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetComputeAccessRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetComputeAccessResult call() throws Exception { GetComputeAccessResult result = null; try { result = executeGetComputeAccess(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 getComputeAuthTokenAsync(GetComputeAuthTokenRequest request) { return getComputeAuthTokenAsync(request, null); } @Override public java.util.concurrent.Future getComputeAuthTokenAsync(final GetComputeAuthTokenRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetComputeAuthTokenRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetComputeAuthTokenResult call() throws Exception { GetComputeAuthTokenResult result = null; try { result = executeGetComputeAuthToken(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 getGameSessionLogUrlAsync(GetGameSessionLogUrlRequest request) { return getGameSessionLogUrlAsync(request, null); } @Override public java.util.concurrent.Future getGameSessionLogUrlAsync(final GetGameSessionLogUrlRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetGameSessionLogUrlRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetGameSessionLogUrlResult call() throws Exception { GetGameSessionLogUrlResult result = null; try { result = executeGetGameSessionLogUrl(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 getInstanceAccessAsync(GetInstanceAccessRequest request) { return getInstanceAccessAsync(request, null); } @Override public java.util.concurrent.Future getInstanceAccessAsync(final GetInstanceAccessRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetInstanceAccessRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetInstanceAccessResult call() throws Exception { GetInstanceAccessResult result = null; try { result = executeGetInstanceAccess(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 listAliasesAsync(ListAliasesRequest request) { return listAliasesAsync(request, null); } @Override public java.util.concurrent.Future listAliasesAsync(final ListAliasesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAliasesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAliasesResult call() throws Exception { ListAliasesResult result = null; try { result = executeListAliases(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 listBuildsAsync(ListBuildsRequest request) { return listBuildsAsync(request, null); } @Override public java.util.concurrent.Future listBuildsAsync(final ListBuildsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListBuildsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListBuildsResult call() throws Exception { ListBuildsResult result = null; try { result = executeListBuilds(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 listComputeAsync(ListComputeRequest request) { return listComputeAsync(request, null); } @Override public java.util.concurrent.Future listComputeAsync(final ListComputeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListComputeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListComputeResult call() throws Exception { ListComputeResult result = null; try { result = executeListCompute(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 listContainerGroupDefinitionsAsync(ListContainerGroupDefinitionsRequest request) { return listContainerGroupDefinitionsAsync(request, null); } @Override public java.util.concurrent.Future listContainerGroupDefinitionsAsync( final ListContainerGroupDefinitionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListContainerGroupDefinitionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListContainerGroupDefinitionsResult call() throws Exception { ListContainerGroupDefinitionsResult result = null; try { result = executeListContainerGroupDefinitions(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 listFleetsAsync(ListFleetsRequest request) { return listFleetsAsync(request, null); } @Override public java.util.concurrent.Future listFleetsAsync(final ListFleetsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListFleetsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListFleetsResult call() throws Exception { ListFleetsResult result = null; try { result = executeListFleets(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 listGameServerGroupsAsync(ListGameServerGroupsRequest request) { return listGameServerGroupsAsync(request, null); } @Override public java.util.concurrent.Future listGameServerGroupsAsync(final ListGameServerGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGameServerGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGameServerGroupsResult call() throws Exception { ListGameServerGroupsResult result = null; try { result = executeListGameServerGroups(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 listGameServersAsync(ListGameServersRequest request) { return listGameServersAsync(request, null); } @Override public java.util.concurrent.Future listGameServersAsync(final ListGameServersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGameServersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGameServersResult call() throws Exception { ListGameServersResult result = null; try { result = executeListGameServers(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 listLocationsAsync(ListLocationsRequest request) { return listLocationsAsync(request, null); } @Override public java.util.concurrent.Future listLocationsAsync(final ListLocationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListLocationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListLocationsResult call() throws Exception { ListLocationsResult result = null; try { result = executeListLocations(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 listScriptsAsync(ListScriptsRequest request) { return listScriptsAsync(request, null); } @Override public java.util.concurrent.Future listScriptsAsync(final ListScriptsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListScriptsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListScriptsResult call() throws Exception { ListScriptsResult result = null; try { result = executeListScripts(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 listTagsForResourceAsync(ListTagsForResourceRequest request) { return listTagsForResourceAsync(request, null); } @Override public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTagsForResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTagsForResourceResult call() throws Exception { ListTagsForResourceResult result = null; try { result = executeListTagsForResource(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 putScalingPolicyAsync(PutScalingPolicyRequest request) { return putScalingPolicyAsync(request, null); } @Override public java.util.concurrent.Future putScalingPolicyAsync(final PutScalingPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutScalingPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutScalingPolicyResult call() throws Exception { PutScalingPolicyResult result = null; try { result = executePutScalingPolicy(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 registerComputeAsync(RegisterComputeRequest request) { return registerComputeAsync(request, null); } @Override public java.util.concurrent.Future registerComputeAsync(final RegisterComputeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterComputeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterComputeResult call() throws Exception { RegisterComputeResult result = null; try { result = executeRegisterCompute(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 registerGameServerAsync(RegisterGameServerRequest request) { return registerGameServerAsync(request, null); } @Override public java.util.concurrent.Future registerGameServerAsync(final RegisterGameServerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterGameServerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterGameServerResult call() throws Exception { RegisterGameServerResult result = null; try { result = executeRegisterGameServer(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 requestUploadCredentialsAsync(RequestUploadCredentialsRequest request) { return requestUploadCredentialsAsync(request, null); } @Override public java.util.concurrent.Future requestUploadCredentialsAsync(final RequestUploadCredentialsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RequestUploadCredentialsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RequestUploadCredentialsResult call() throws Exception { RequestUploadCredentialsResult result = null; try { result = executeRequestUploadCredentials(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 resolveAliasAsync(ResolveAliasRequest request) { return resolveAliasAsync(request, null); } @Override public java.util.concurrent.Future resolveAliasAsync(final ResolveAliasRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResolveAliasRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResolveAliasResult call() throws Exception { ResolveAliasResult result = null; try { result = executeResolveAlias(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 resumeGameServerGroupAsync(ResumeGameServerGroupRequest request) { return resumeGameServerGroupAsync(request, null); } @Override public java.util.concurrent.Future resumeGameServerGroupAsync(final ResumeGameServerGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResumeGameServerGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResumeGameServerGroupResult call() throws Exception { ResumeGameServerGroupResult result = null; try { result = executeResumeGameServerGroup(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 searchGameSessionsAsync(SearchGameSessionsRequest request) { return searchGameSessionsAsync(request, null); } @Override public java.util.concurrent.Future searchGameSessionsAsync(final SearchGameSessionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchGameSessionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchGameSessionsResult call() throws Exception { SearchGameSessionsResult result = null; try { result = executeSearchGameSessions(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 startFleetActionsAsync(StartFleetActionsRequest request) { return startFleetActionsAsync(request, null); } @Override public java.util.concurrent.Future startFleetActionsAsync(final StartFleetActionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartFleetActionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartFleetActionsResult call() throws Exception { StartFleetActionsResult result = null; try { result = executeStartFleetActions(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 startGameSessionPlacementAsync(StartGameSessionPlacementRequest request) { return startGameSessionPlacementAsync(request, null); } @Override public java.util.concurrent.Future startGameSessionPlacementAsync(final StartGameSessionPlacementRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartGameSessionPlacementRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartGameSessionPlacementResult call() throws Exception { StartGameSessionPlacementResult result = null; try { result = executeStartGameSessionPlacement(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 startMatchBackfillAsync(StartMatchBackfillRequest request) { return startMatchBackfillAsync(request, null); } @Override public java.util.concurrent.Future startMatchBackfillAsync(final StartMatchBackfillRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartMatchBackfillRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartMatchBackfillResult call() throws Exception { StartMatchBackfillResult result = null; try { result = executeStartMatchBackfill(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 startMatchmakingAsync(StartMatchmakingRequest request) { return startMatchmakingAsync(request, null); } @Override public java.util.concurrent.Future startMatchmakingAsync(final StartMatchmakingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartMatchmakingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartMatchmakingResult call() throws Exception { StartMatchmakingResult result = null; try { result = executeStartMatchmaking(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 stopFleetActionsAsync(StopFleetActionsRequest request) { return stopFleetActionsAsync(request, null); } @Override public java.util.concurrent.Future stopFleetActionsAsync(final StopFleetActionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StopFleetActionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StopFleetActionsResult call() throws Exception { StopFleetActionsResult result = null; try { result = executeStopFleetActions(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 stopGameSessionPlacementAsync(StopGameSessionPlacementRequest request) { return stopGameSessionPlacementAsync(request, null); } @Override public java.util.concurrent.Future stopGameSessionPlacementAsync(final StopGameSessionPlacementRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StopGameSessionPlacementRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StopGameSessionPlacementResult call() throws Exception { StopGameSessionPlacementResult result = null; try { result = executeStopGameSessionPlacement(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 stopMatchmakingAsync(StopMatchmakingRequest request) { return stopMatchmakingAsync(request, null); } @Override public java.util.concurrent.Future stopMatchmakingAsync(final StopMatchmakingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StopMatchmakingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StopMatchmakingResult call() throws Exception { StopMatchmakingResult result = null; try { result = executeStopMatchmaking(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 suspendGameServerGroupAsync(SuspendGameServerGroupRequest request) { return suspendGameServerGroupAsync(request, null); } @Override public java.util.concurrent.Future suspendGameServerGroupAsync(final SuspendGameServerGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SuspendGameServerGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SuspendGameServerGroupResult call() throws Exception { SuspendGameServerGroupResult result = null; try { result = executeSuspendGameServerGroup(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 tagResourceAsync(TagResourceRequest request) { return tagResourceAsync(request, null); } @Override public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final TagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public TagResourceResult call() throws Exception { TagResourceResult result = null; try { result = executeTagResource(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 untagResourceAsync(UntagResourceRequest request) { return untagResourceAsync(request, null); } @Override public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UntagResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UntagResourceResult call() throws Exception { UntagResourceResult result = null; try { result = executeUntagResource(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 updateAliasAsync(UpdateAliasRequest request) { return updateAliasAsync(request, null); } @Override public java.util.concurrent.Future updateAliasAsync(final UpdateAliasRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAliasRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAliasResult call() throws Exception { UpdateAliasResult result = null; try { result = executeUpdateAlias(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 updateBuildAsync(UpdateBuildRequest request) { return updateBuildAsync(request, null); } @Override public java.util.concurrent.Future updateBuildAsync(final UpdateBuildRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateBuildRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateBuildResult call() throws Exception { UpdateBuildResult result = null; try { result = executeUpdateBuild(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 updateFleetAttributesAsync(UpdateFleetAttributesRequest request) { return updateFleetAttributesAsync(request, null); } @Override public java.util.concurrent.Future updateFleetAttributesAsync(final UpdateFleetAttributesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateFleetAttributesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateFleetAttributesResult call() throws Exception { UpdateFleetAttributesResult result = null; try { result = executeUpdateFleetAttributes(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 updateFleetCapacityAsync(UpdateFleetCapacityRequest request) { return updateFleetCapacityAsync(request, null); } @Override public java.util.concurrent.Future updateFleetCapacityAsync(final UpdateFleetCapacityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateFleetCapacityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateFleetCapacityResult call() throws Exception { UpdateFleetCapacityResult result = null; try { result = executeUpdateFleetCapacity(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 updateFleetPortSettingsAsync(UpdateFleetPortSettingsRequest request) { return updateFleetPortSettingsAsync(request, null); } @Override public java.util.concurrent.Future updateFleetPortSettingsAsync(final UpdateFleetPortSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateFleetPortSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateFleetPortSettingsResult call() throws Exception { UpdateFleetPortSettingsResult result = null; try { result = executeUpdateFleetPortSettings(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 updateGameServerAsync(UpdateGameServerRequest request) { return updateGameServerAsync(request, null); } @Override public java.util.concurrent.Future updateGameServerAsync(final UpdateGameServerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGameServerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGameServerResult call() throws Exception { UpdateGameServerResult result = null; try { result = executeUpdateGameServer(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 updateGameServerGroupAsync(UpdateGameServerGroupRequest request) { return updateGameServerGroupAsync(request, null); } @Override public java.util.concurrent.Future updateGameServerGroupAsync(final UpdateGameServerGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGameServerGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGameServerGroupResult call() throws Exception { UpdateGameServerGroupResult result = null; try { result = executeUpdateGameServerGroup(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 updateGameSessionAsync(UpdateGameSessionRequest request) { return updateGameSessionAsync(request, null); } @Override public java.util.concurrent.Future updateGameSessionAsync(final UpdateGameSessionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGameSessionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGameSessionResult call() throws Exception { UpdateGameSessionResult result = null; try { result = executeUpdateGameSession(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 updateGameSessionQueueAsync(UpdateGameSessionQueueRequest request) { return updateGameSessionQueueAsync(request, null); } @Override public java.util.concurrent.Future updateGameSessionQueueAsync(final UpdateGameSessionQueueRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGameSessionQueueRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGameSessionQueueResult call() throws Exception { UpdateGameSessionQueueResult result = null; try { result = executeUpdateGameSessionQueue(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 updateMatchmakingConfigurationAsync(UpdateMatchmakingConfigurationRequest request) { return updateMatchmakingConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateMatchmakingConfigurationAsync( final UpdateMatchmakingConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMatchmakingConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMatchmakingConfigurationResult call() throws Exception { UpdateMatchmakingConfigurationResult result = null; try { result = executeUpdateMatchmakingConfiguration(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 updateRuntimeConfigurationAsync(UpdateRuntimeConfigurationRequest request) { return updateRuntimeConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateRuntimeConfigurationAsync(final UpdateRuntimeConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRuntimeConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRuntimeConfigurationResult call() throws Exception { UpdateRuntimeConfigurationResult result = null; try { result = executeUpdateRuntimeConfiguration(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 updateScriptAsync(UpdateScriptRequest request) { return updateScriptAsync(request, null); } @Override public java.util.concurrent.Future updateScriptAsync(final UpdateScriptRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateScriptRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateScriptResult call() throws Exception { UpdateScriptResult result = null; try { result = executeUpdateScript(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 validateMatchmakingRuleSetAsync(ValidateMatchmakingRuleSetRequest request) { return validateMatchmakingRuleSetAsync(request, null); } @Override public java.util.concurrent.Future validateMatchmakingRuleSetAsync(final ValidateMatchmakingRuleSetRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ValidateMatchmakingRuleSetRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ValidateMatchmakingRuleSetResult call() throws Exception { ValidateMatchmakingRuleSetResult result = null; try { result = executeValidateMatchmakingRuleSet(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } /** * 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 * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to * calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy