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

com.amazonaws.services.greengrass.AWSGreengrassAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Greengrass module holds the client classes that are used for communicating with AWS Greengrass Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2015-2020 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.greengrass;

import javax.annotation.Generated;

import com.amazonaws.services.greengrass.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing AWS Greengrass 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.
 * 

* AWS IoT Greengrass seamlessly extends AWS onto physical devices so they can act locally on the data they generate, * while still using the cloud for management, analytics, and durable storage. AWS IoT Greengrass ensures your devices * can respond quickly to local events and operate with intermittent connectivity. AWS IoT Greengrass minimizes the cost * of transmitting data to the cloud by allowing you to author AWS Lambda functions that execute locally. */ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSGreengrassAsyncClient extends AWSGreengrassClient implements AWSGreengrassAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AWSGreengrassAsyncClientBuilder asyncBuilder() { return AWSGreengrassAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on AWS Greengrass using the specified parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSGreengrassAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on AWS Greengrass using the specified parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSGreengrassAsyncClient(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 associateRoleToGroupAsync(AssociateRoleToGroupRequest request) { return associateRoleToGroupAsync(request, null); } @Override public java.util.concurrent.Future associateRoleToGroupAsync(final AssociateRoleToGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateRoleToGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateRoleToGroupResult call() throws Exception { AssociateRoleToGroupResult result = null; try { result = executeAssociateRoleToGroup(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 associateServiceRoleToAccountAsync(AssociateServiceRoleToAccountRequest request) { return associateServiceRoleToAccountAsync(request, null); } @Override public java.util.concurrent.Future associateServiceRoleToAccountAsync( final AssociateServiceRoleToAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateServiceRoleToAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateServiceRoleToAccountResult call() throws Exception { AssociateServiceRoleToAccountResult result = null; try { result = executeAssociateServiceRoleToAccount(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 createConnectorDefinitionAsync(CreateConnectorDefinitionRequest request) { return createConnectorDefinitionAsync(request, null); } @Override public java.util.concurrent.Future createConnectorDefinitionAsync(final CreateConnectorDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateConnectorDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateConnectorDefinitionResult call() throws Exception { CreateConnectorDefinitionResult result = null; try { result = executeCreateConnectorDefinition(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 createConnectorDefinitionVersionAsync( CreateConnectorDefinitionVersionRequest request) { return createConnectorDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future createConnectorDefinitionVersionAsync( final CreateConnectorDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateConnectorDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateConnectorDefinitionVersionResult call() throws Exception { CreateConnectorDefinitionVersionResult result = null; try { result = executeCreateConnectorDefinitionVersion(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 createCoreDefinitionAsync(CreateCoreDefinitionRequest request) { return createCoreDefinitionAsync(request, null); } @Override public java.util.concurrent.Future createCoreDefinitionAsync(final CreateCoreDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateCoreDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateCoreDefinitionResult call() throws Exception { CreateCoreDefinitionResult result = null; try { result = executeCreateCoreDefinition(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 createCoreDefinitionVersionAsync(CreateCoreDefinitionVersionRequest request) { return createCoreDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future createCoreDefinitionVersionAsync(final CreateCoreDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateCoreDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateCoreDefinitionVersionResult call() throws Exception { CreateCoreDefinitionVersionResult result = null; try { result = executeCreateCoreDefinitionVersion(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 createDeploymentAsync(CreateDeploymentRequest request) { return createDeploymentAsync(request, null); } @Override public java.util.concurrent.Future createDeploymentAsync(final CreateDeploymentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateDeploymentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateDeploymentResult call() throws Exception { CreateDeploymentResult result = null; try { result = executeCreateDeployment(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 createDeviceDefinitionAsync(CreateDeviceDefinitionRequest request) { return createDeviceDefinitionAsync(request, null); } @Override public java.util.concurrent.Future createDeviceDefinitionAsync(final CreateDeviceDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateDeviceDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateDeviceDefinitionResult call() throws Exception { CreateDeviceDefinitionResult result = null; try { result = executeCreateDeviceDefinition(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 createDeviceDefinitionVersionAsync(CreateDeviceDefinitionVersionRequest request) { return createDeviceDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future createDeviceDefinitionVersionAsync( final CreateDeviceDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateDeviceDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateDeviceDefinitionVersionResult call() throws Exception { CreateDeviceDefinitionVersionResult result = null; try { result = executeCreateDeviceDefinitionVersion(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 createFunctionDefinitionAsync(CreateFunctionDefinitionRequest request) { return createFunctionDefinitionAsync(request, null); } @Override public java.util.concurrent.Future createFunctionDefinitionAsync(final CreateFunctionDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateFunctionDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateFunctionDefinitionResult call() throws Exception { CreateFunctionDefinitionResult result = null; try { result = executeCreateFunctionDefinition(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 createFunctionDefinitionVersionAsync( CreateFunctionDefinitionVersionRequest request) { return createFunctionDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future createFunctionDefinitionVersionAsync( final CreateFunctionDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateFunctionDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateFunctionDefinitionVersionResult call() throws Exception { CreateFunctionDefinitionVersionResult result = null; try { result = executeCreateFunctionDefinitionVersion(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 createGroupAsync(CreateGroupRequest request) { return createGroupAsync(request, null); } @Override public java.util.concurrent.Future createGroupAsync(final CreateGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateGroupResult call() throws Exception { CreateGroupResult result = null; try { result = executeCreateGroup(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 createGroupCertificateAuthorityAsync( CreateGroupCertificateAuthorityRequest request) { return createGroupCertificateAuthorityAsync(request, null); } @Override public java.util.concurrent.Future createGroupCertificateAuthorityAsync( final CreateGroupCertificateAuthorityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateGroupCertificateAuthorityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateGroupCertificateAuthorityResult call() throws Exception { CreateGroupCertificateAuthorityResult result = null; try { result = executeCreateGroupCertificateAuthority(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 createGroupVersionAsync(CreateGroupVersionRequest request) { return createGroupVersionAsync(request, null); } @Override public java.util.concurrent.Future createGroupVersionAsync(final CreateGroupVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateGroupVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateGroupVersionResult call() throws Exception { CreateGroupVersionResult result = null; try { result = executeCreateGroupVersion(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 createLoggerDefinitionAsync(CreateLoggerDefinitionRequest request) { return createLoggerDefinitionAsync(request, null); } @Override public java.util.concurrent.Future createLoggerDefinitionAsync(final CreateLoggerDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateLoggerDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateLoggerDefinitionResult call() throws Exception { CreateLoggerDefinitionResult result = null; try { result = executeCreateLoggerDefinition(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 createLoggerDefinitionVersionAsync(CreateLoggerDefinitionVersionRequest request) { return createLoggerDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future createLoggerDefinitionVersionAsync( final CreateLoggerDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateLoggerDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateLoggerDefinitionVersionResult call() throws Exception { CreateLoggerDefinitionVersionResult result = null; try { result = executeCreateLoggerDefinitionVersion(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 createResourceDefinitionAsync(CreateResourceDefinitionRequest request) { return createResourceDefinitionAsync(request, null); } @Override public java.util.concurrent.Future createResourceDefinitionAsync(final CreateResourceDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateResourceDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateResourceDefinitionResult call() throws Exception { CreateResourceDefinitionResult result = null; try { result = executeCreateResourceDefinition(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 createResourceDefinitionVersionAsync( CreateResourceDefinitionVersionRequest request) { return createResourceDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future createResourceDefinitionVersionAsync( final CreateResourceDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateResourceDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateResourceDefinitionVersionResult call() throws Exception { CreateResourceDefinitionVersionResult result = null; try { result = executeCreateResourceDefinitionVersion(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 createSoftwareUpdateJobAsync(CreateSoftwareUpdateJobRequest request) { return createSoftwareUpdateJobAsync(request, null); } @Override public java.util.concurrent.Future createSoftwareUpdateJobAsync(final CreateSoftwareUpdateJobRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSoftwareUpdateJobRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSoftwareUpdateJobResult call() throws Exception { CreateSoftwareUpdateJobResult result = null; try { result = executeCreateSoftwareUpdateJob(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 createSubscriptionDefinitionAsync(CreateSubscriptionDefinitionRequest request) { return createSubscriptionDefinitionAsync(request, null); } @Override public java.util.concurrent.Future createSubscriptionDefinitionAsync(final CreateSubscriptionDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSubscriptionDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSubscriptionDefinitionResult call() throws Exception { CreateSubscriptionDefinitionResult result = null; try { result = executeCreateSubscriptionDefinition(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 createSubscriptionDefinitionVersionAsync( CreateSubscriptionDefinitionVersionRequest request) { return createSubscriptionDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future createSubscriptionDefinitionVersionAsync( final CreateSubscriptionDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSubscriptionDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSubscriptionDefinitionVersionResult call() throws Exception { CreateSubscriptionDefinitionVersionResult result = null; try { result = executeCreateSubscriptionDefinitionVersion(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 deleteConnectorDefinitionAsync(DeleteConnectorDefinitionRequest request) { return deleteConnectorDefinitionAsync(request, null); } @Override public java.util.concurrent.Future deleteConnectorDefinitionAsync(final DeleteConnectorDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteConnectorDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteConnectorDefinitionResult call() throws Exception { DeleteConnectorDefinitionResult result = null; try { result = executeDeleteConnectorDefinition(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 deleteCoreDefinitionAsync(DeleteCoreDefinitionRequest request) { return deleteCoreDefinitionAsync(request, null); } @Override public java.util.concurrent.Future deleteCoreDefinitionAsync(final DeleteCoreDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteCoreDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteCoreDefinitionResult call() throws Exception { DeleteCoreDefinitionResult result = null; try { result = executeDeleteCoreDefinition(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 deleteDeviceDefinitionAsync(DeleteDeviceDefinitionRequest request) { return deleteDeviceDefinitionAsync(request, null); } @Override public java.util.concurrent.Future deleteDeviceDefinitionAsync(final DeleteDeviceDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteDeviceDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteDeviceDefinitionResult call() throws Exception { DeleteDeviceDefinitionResult result = null; try { result = executeDeleteDeviceDefinition(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 deleteFunctionDefinitionAsync(DeleteFunctionDefinitionRequest request) { return deleteFunctionDefinitionAsync(request, null); } @Override public java.util.concurrent.Future deleteFunctionDefinitionAsync(final DeleteFunctionDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteFunctionDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteFunctionDefinitionResult call() throws Exception { DeleteFunctionDefinitionResult result = null; try { result = executeDeleteFunctionDefinition(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 deleteGroupAsync(DeleteGroupRequest request) { return deleteGroupAsync(request, null); } @Override public java.util.concurrent.Future deleteGroupAsync(final DeleteGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteGroupResult call() throws Exception { DeleteGroupResult result = null; try { result = executeDeleteGroup(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 deleteLoggerDefinitionAsync(DeleteLoggerDefinitionRequest request) { return deleteLoggerDefinitionAsync(request, null); } @Override public java.util.concurrent.Future deleteLoggerDefinitionAsync(final DeleteLoggerDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteLoggerDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteLoggerDefinitionResult call() throws Exception { DeleteLoggerDefinitionResult result = null; try { result = executeDeleteLoggerDefinition(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 deleteResourceDefinitionAsync(DeleteResourceDefinitionRequest request) { return deleteResourceDefinitionAsync(request, null); } @Override public java.util.concurrent.Future deleteResourceDefinitionAsync(final DeleteResourceDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteResourceDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteResourceDefinitionResult call() throws Exception { DeleteResourceDefinitionResult result = null; try { result = executeDeleteResourceDefinition(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 deleteSubscriptionDefinitionAsync(DeleteSubscriptionDefinitionRequest request) { return deleteSubscriptionDefinitionAsync(request, null); } @Override public java.util.concurrent.Future deleteSubscriptionDefinitionAsync(final DeleteSubscriptionDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSubscriptionDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSubscriptionDefinitionResult call() throws Exception { DeleteSubscriptionDefinitionResult result = null; try { result = executeDeleteSubscriptionDefinition(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 disassociateRoleFromGroupAsync(DisassociateRoleFromGroupRequest request) { return disassociateRoleFromGroupAsync(request, null); } @Override public java.util.concurrent.Future disassociateRoleFromGroupAsync(final DisassociateRoleFromGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateRoleFromGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateRoleFromGroupResult call() throws Exception { DisassociateRoleFromGroupResult result = null; try { result = executeDisassociateRoleFromGroup(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 disassociateServiceRoleFromAccountAsync( DisassociateServiceRoleFromAccountRequest request) { return disassociateServiceRoleFromAccountAsync(request, null); } @Override public java.util.concurrent.Future disassociateServiceRoleFromAccountAsync( final DisassociateServiceRoleFromAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateServiceRoleFromAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateServiceRoleFromAccountResult call() throws Exception { DisassociateServiceRoleFromAccountResult result = null; try { result = executeDisassociateServiceRoleFromAccount(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 getAssociatedRoleAsync(GetAssociatedRoleRequest request) { return getAssociatedRoleAsync(request, null); } @Override public java.util.concurrent.Future getAssociatedRoleAsync(final GetAssociatedRoleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAssociatedRoleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAssociatedRoleResult call() throws Exception { GetAssociatedRoleResult result = null; try { result = executeGetAssociatedRole(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 getBulkDeploymentStatusAsync(GetBulkDeploymentStatusRequest request) { return getBulkDeploymentStatusAsync(request, null); } @Override public java.util.concurrent.Future getBulkDeploymentStatusAsync(final GetBulkDeploymentStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetBulkDeploymentStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetBulkDeploymentStatusResult call() throws Exception { GetBulkDeploymentStatusResult result = null; try { result = executeGetBulkDeploymentStatus(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 getConnectivityInfoAsync(GetConnectivityInfoRequest request) { return getConnectivityInfoAsync(request, null); } @Override public java.util.concurrent.Future getConnectivityInfoAsync(final GetConnectivityInfoRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetConnectivityInfoRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetConnectivityInfoResult call() throws Exception { GetConnectivityInfoResult result = null; try { result = executeGetConnectivityInfo(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 getConnectorDefinitionAsync(GetConnectorDefinitionRequest request) { return getConnectorDefinitionAsync(request, null); } @Override public java.util.concurrent.Future getConnectorDefinitionAsync(final GetConnectorDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetConnectorDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetConnectorDefinitionResult call() throws Exception { GetConnectorDefinitionResult result = null; try { result = executeGetConnectorDefinition(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 getConnectorDefinitionVersionAsync(GetConnectorDefinitionVersionRequest request) { return getConnectorDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future getConnectorDefinitionVersionAsync( final GetConnectorDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetConnectorDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetConnectorDefinitionVersionResult call() throws Exception { GetConnectorDefinitionVersionResult result = null; try { result = executeGetConnectorDefinitionVersion(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 getCoreDefinitionAsync(GetCoreDefinitionRequest request) { return getCoreDefinitionAsync(request, null); } @Override public java.util.concurrent.Future getCoreDefinitionAsync(final GetCoreDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetCoreDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetCoreDefinitionResult call() throws Exception { GetCoreDefinitionResult result = null; try { result = executeGetCoreDefinition(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 getCoreDefinitionVersionAsync(GetCoreDefinitionVersionRequest request) { return getCoreDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future getCoreDefinitionVersionAsync(final GetCoreDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetCoreDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetCoreDefinitionVersionResult call() throws Exception { GetCoreDefinitionVersionResult result = null; try { result = executeGetCoreDefinitionVersion(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 getDeploymentStatusAsync(GetDeploymentStatusRequest request) { return getDeploymentStatusAsync(request, null); } @Override public java.util.concurrent.Future getDeploymentStatusAsync(final GetDeploymentStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDeploymentStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDeploymentStatusResult call() throws Exception { GetDeploymentStatusResult result = null; try { result = executeGetDeploymentStatus(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 getDeviceDefinitionAsync(GetDeviceDefinitionRequest request) { return getDeviceDefinitionAsync(request, null); } @Override public java.util.concurrent.Future getDeviceDefinitionAsync(final GetDeviceDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDeviceDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDeviceDefinitionResult call() throws Exception { GetDeviceDefinitionResult result = null; try { result = executeGetDeviceDefinition(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 getDeviceDefinitionVersionAsync(GetDeviceDefinitionVersionRequest request) { return getDeviceDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future getDeviceDefinitionVersionAsync(final GetDeviceDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDeviceDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDeviceDefinitionVersionResult call() throws Exception { GetDeviceDefinitionVersionResult result = null; try { result = executeGetDeviceDefinitionVersion(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 getFunctionDefinitionAsync(GetFunctionDefinitionRequest request) { return getFunctionDefinitionAsync(request, null); } @Override public java.util.concurrent.Future getFunctionDefinitionAsync(final GetFunctionDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetFunctionDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetFunctionDefinitionResult call() throws Exception { GetFunctionDefinitionResult result = null; try { result = executeGetFunctionDefinition(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 getFunctionDefinitionVersionAsync(GetFunctionDefinitionVersionRequest request) { return getFunctionDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future getFunctionDefinitionVersionAsync(final GetFunctionDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetFunctionDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetFunctionDefinitionVersionResult call() throws Exception { GetFunctionDefinitionVersionResult result = null; try { result = executeGetFunctionDefinitionVersion(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 getGroupAsync(GetGroupRequest request) { return getGroupAsync(request, null); } @Override public java.util.concurrent.Future getGroupAsync(final GetGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetGroupResult call() throws Exception { GetGroupResult result = null; try { result = executeGetGroup(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 getGroupCertificateAuthorityAsync(GetGroupCertificateAuthorityRequest request) { return getGroupCertificateAuthorityAsync(request, null); } @Override public java.util.concurrent.Future getGroupCertificateAuthorityAsync(final GetGroupCertificateAuthorityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetGroupCertificateAuthorityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetGroupCertificateAuthorityResult call() throws Exception { GetGroupCertificateAuthorityResult result = null; try { result = executeGetGroupCertificateAuthority(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 getGroupCertificateConfigurationAsync( GetGroupCertificateConfigurationRequest request) { return getGroupCertificateConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getGroupCertificateConfigurationAsync( final GetGroupCertificateConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetGroupCertificateConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetGroupCertificateConfigurationResult call() throws Exception { GetGroupCertificateConfigurationResult result = null; try { result = executeGetGroupCertificateConfiguration(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 getGroupVersionAsync(GetGroupVersionRequest request) { return getGroupVersionAsync(request, null); } @Override public java.util.concurrent.Future getGroupVersionAsync(final GetGroupVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetGroupVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetGroupVersionResult call() throws Exception { GetGroupVersionResult result = null; try { result = executeGetGroupVersion(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 getLoggerDefinitionAsync(GetLoggerDefinitionRequest request) { return getLoggerDefinitionAsync(request, null); } @Override public java.util.concurrent.Future getLoggerDefinitionAsync(final GetLoggerDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetLoggerDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetLoggerDefinitionResult call() throws Exception { GetLoggerDefinitionResult result = null; try { result = executeGetLoggerDefinition(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 getLoggerDefinitionVersionAsync(GetLoggerDefinitionVersionRequest request) { return getLoggerDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future getLoggerDefinitionVersionAsync(final GetLoggerDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetLoggerDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetLoggerDefinitionVersionResult call() throws Exception { GetLoggerDefinitionVersionResult result = null; try { result = executeGetLoggerDefinitionVersion(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 getResourceDefinitionAsync(GetResourceDefinitionRequest request) { return getResourceDefinitionAsync(request, null); } @Override public java.util.concurrent.Future getResourceDefinitionAsync(final GetResourceDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetResourceDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetResourceDefinitionResult call() throws Exception { GetResourceDefinitionResult result = null; try { result = executeGetResourceDefinition(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 getResourceDefinitionVersionAsync(GetResourceDefinitionVersionRequest request) { return getResourceDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future getResourceDefinitionVersionAsync(final GetResourceDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetResourceDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetResourceDefinitionVersionResult call() throws Exception { GetResourceDefinitionVersionResult result = null; try { result = executeGetResourceDefinitionVersion(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 getServiceRoleForAccountAsync(GetServiceRoleForAccountRequest request) { return getServiceRoleForAccountAsync(request, null); } @Override public java.util.concurrent.Future getServiceRoleForAccountAsync(final GetServiceRoleForAccountRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetServiceRoleForAccountRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetServiceRoleForAccountResult call() throws Exception { GetServiceRoleForAccountResult result = null; try { result = executeGetServiceRoleForAccount(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 getSubscriptionDefinitionAsync(GetSubscriptionDefinitionRequest request) { return getSubscriptionDefinitionAsync(request, null); } @Override public java.util.concurrent.Future getSubscriptionDefinitionAsync(final GetSubscriptionDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSubscriptionDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSubscriptionDefinitionResult call() throws Exception { GetSubscriptionDefinitionResult result = null; try { result = executeGetSubscriptionDefinition(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 getSubscriptionDefinitionVersionAsync( GetSubscriptionDefinitionVersionRequest request) { return getSubscriptionDefinitionVersionAsync(request, null); } @Override public java.util.concurrent.Future getSubscriptionDefinitionVersionAsync( final GetSubscriptionDefinitionVersionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSubscriptionDefinitionVersionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSubscriptionDefinitionVersionResult call() throws Exception { GetSubscriptionDefinitionVersionResult result = null; try { result = executeGetSubscriptionDefinitionVersion(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 listBulkDeploymentDetailedReportsAsync( ListBulkDeploymentDetailedReportsRequest request) { return listBulkDeploymentDetailedReportsAsync(request, null); } @Override public java.util.concurrent.Future listBulkDeploymentDetailedReportsAsync( final ListBulkDeploymentDetailedReportsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListBulkDeploymentDetailedReportsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListBulkDeploymentDetailedReportsResult call() throws Exception { ListBulkDeploymentDetailedReportsResult result = null; try { result = executeListBulkDeploymentDetailedReports(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 listBulkDeploymentsAsync(ListBulkDeploymentsRequest request) { return listBulkDeploymentsAsync(request, null); } @Override public java.util.concurrent.Future listBulkDeploymentsAsync(final ListBulkDeploymentsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListBulkDeploymentsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListBulkDeploymentsResult call() throws Exception { ListBulkDeploymentsResult result = null; try { result = executeListBulkDeployments(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 listConnectorDefinitionVersionsAsync( ListConnectorDefinitionVersionsRequest request) { return listConnectorDefinitionVersionsAsync(request, null); } @Override public java.util.concurrent.Future listConnectorDefinitionVersionsAsync( final ListConnectorDefinitionVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListConnectorDefinitionVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListConnectorDefinitionVersionsResult call() throws Exception { ListConnectorDefinitionVersionsResult result = null; try { result = executeListConnectorDefinitionVersions(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 listConnectorDefinitionsAsync(ListConnectorDefinitionsRequest request) { return listConnectorDefinitionsAsync(request, null); } @Override public java.util.concurrent.Future listConnectorDefinitionsAsync(final ListConnectorDefinitionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListConnectorDefinitionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListConnectorDefinitionsResult call() throws Exception { ListConnectorDefinitionsResult result = null; try { result = executeListConnectorDefinitions(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 listCoreDefinitionVersionsAsync(ListCoreDefinitionVersionsRequest request) { return listCoreDefinitionVersionsAsync(request, null); } @Override public java.util.concurrent.Future listCoreDefinitionVersionsAsync(final ListCoreDefinitionVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListCoreDefinitionVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListCoreDefinitionVersionsResult call() throws Exception { ListCoreDefinitionVersionsResult result = null; try { result = executeListCoreDefinitionVersions(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 listCoreDefinitionsAsync(ListCoreDefinitionsRequest request) { return listCoreDefinitionsAsync(request, null); } @Override public java.util.concurrent.Future listCoreDefinitionsAsync(final ListCoreDefinitionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListCoreDefinitionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListCoreDefinitionsResult call() throws Exception { ListCoreDefinitionsResult result = null; try { result = executeListCoreDefinitions(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 listDeploymentsAsync(ListDeploymentsRequest request) { return listDeploymentsAsync(request, null); } @Override public java.util.concurrent.Future listDeploymentsAsync(final ListDeploymentsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDeploymentsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDeploymentsResult call() throws Exception { ListDeploymentsResult result = null; try { result = executeListDeployments(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 listDeviceDefinitionVersionsAsync(ListDeviceDefinitionVersionsRequest request) { return listDeviceDefinitionVersionsAsync(request, null); } @Override public java.util.concurrent.Future listDeviceDefinitionVersionsAsync(final ListDeviceDefinitionVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDeviceDefinitionVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDeviceDefinitionVersionsResult call() throws Exception { ListDeviceDefinitionVersionsResult result = null; try { result = executeListDeviceDefinitionVersions(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 listDeviceDefinitionsAsync(ListDeviceDefinitionsRequest request) { return listDeviceDefinitionsAsync(request, null); } @Override public java.util.concurrent.Future listDeviceDefinitionsAsync(final ListDeviceDefinitionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDeviceDefinitionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDeviceDefinitionsResult call() throws Exception { ListDeviceDefinitionsResult result = null; try { result = executeListDeviceDefinitions(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 listFunctionDefinitionVersionsAsync(ListFunctionDefinitionVersionsRequest request) { return listFunctionDefinitionVersionsAsync(request, null); } @Override public java.util.concurrent.Future listFunctionDefinitionVersionsAsync( final ListFunctionDefinitionVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListFunctionDefinitionVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListFunctionDefinitionVersionsResult call() throws Exception { ListFunctionDefinitionVersionsResult result = null; try { result = executeListFunctionDefinitionVersions(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 listFunctionDefinitionsAsync(ListFunctionDefinitionsRequest request) { return listFunctionDefinitionsAsync(request, null); } @Override public java.util.concurrent.Future listFunctionDefinitionsAsync(final ListFunctionDefinitionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListFunctionDefinitionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListFunctionDefinitionsResult call() throws Exception { ListFunctionDefinitionsResult result = null; try { result = executeListFunctionDefinitions(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 listGroupCertificateAuthoritiesAsync( ListGroupCertificateAuthoritiesRequest request) { return listGroupCertificateAuthoritiesAsync(request, null); } @Override public java.util.concurrent.Future listGroupCertificateAuthoritiesAsync( final ListGroupCertificateAuthoritiesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGroupCertificateAuthoritiesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGroupCertificateAuthoritiesResult call() throws Exception { ListGroupCertificateAuthoritiesResult result = null; try { result = executeListGroupCertificateAuthorities(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 listGroupVersionsAsync(ListGroupVersionsRequest request) { return listGroupVersionsAsync(request, null); } @Override public java.util.concurrent.Future listGroupVersionsAsync(final ListGroupVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGroupVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGroupVersionsResult call() throws Exception { ListGroupVersionsResult result = null; try { result = executeListGroupVersions(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 listGroupsAsync(ListGroupsRequest request) { return listGroupsAsync(request, null); } @Override public java.util.concurrent.Future listGroupsAsync(final ListGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGroupsResult call() throws Exception { ListGroupsResult result = null; try { result = executeListGroups(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 listLoggerDefinitionVersionsAsync(ListLoggerDefinitionVersionsRequest request) { return listLoggerDefinitionVersionsAsync(request, null); } @Override public java.util.concurrent.Future listLoggerDefinitionVersionsAsync(final ListLoggerDefinitionVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListLoggerDefinitionVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListLoggerDefinitionVersionsResult call() throws Exception { ListLoggerDefinitionVersionsResult result = null; try { result = executeListLoggerDefinitionVersions(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 listLoggerDefinitionsAsync(ListLoggerDefinitionsRequest request) { return listLoggerDefinitionsAsync(request, null); } @Override public java.util.concurrent.Future listLoggerDefinitionsAsync(final ListLoggerDefinitionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListLoggerDefinitionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListLoggerDefinitionsResult call() throws Exception { ListLoggerDefinitionsResult result = null; try { result = executeListLoggerDefinitions(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 listResourceDefinitionVersionsAsync(ListResourceDefinitionVersionsRequest request) { return listResourceDefinitionVersionsAsync(request, null); } @Override public java.util.concurrent.Future listResourceDefinitionVersionsAsync( final ListResourceDefinitionVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourceDefinitionVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourceDefinitionVersionsResult call() throws Exception { ListResourceDefinitionVersionsResult result = null; try { result = executeListResourceDefinitionVersions(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 listResourceDefinitionsAsync(ListResourceDefinitionsRequest request) { return listResourceDefinitionsAsync(request, null); } @Override public java.util.concurrent.Future listResourceDefinitionsAsync(final ListResourceDefinitionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourceDefinitionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourceDefinitionsResult call() throws Exception { ListResourceDefinitionsResult result = null; try { result = executeListResourceDefinitions(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 listSubscriptionDefinitionVersionsAsync( ListSubscriptionDefinitionVersionsRequest request) { return listSubscriptionDefinitionVersionsAsync(request, null); } @Override public java.util.concurrent.Future listSubscriptionDefinitionVersionsAsync( final ListSubscriptionDefinitionVersionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSubscriptionDefinitionVersionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSubscriptionDefinitionVersionsResult call() throws Exception { ListSubscriptionDefinitionVersionsResult result = null; try { result = executeListSubscriptionDefinitionVersions(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 listSubscriptionDefinitionsAsync(ListSubscriptionDefinitionsRequest request) { return listSubscriptionDefinitionsAsync(request, null); } @Override public java.util.concurrent.Future listSubscriptionDefinitionsAsync(final ListSubscriptionDefinitionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSubscriptionDefinitionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSubscriptionDefinitionsResult call() throws Exception { ListSubscriptionDefinitionsResult result = null; try { result = executeListSubscriptionDefinitions(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 resetDeploymentsAsync(ResetDeploymentsRequest request) { return resetDeploymentsAsync(request, null); } @Override public java.util.concurrent.Future resetDeploymentsAsync(final ResetDeploymentsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResetDeploymentsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResetDeploymentsResult call() throws Exception { ResetDeploymentsResult result = null; try { result = executeResetDeployments(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 startBulkDeploymentAsync(StartBulkDeploymentRequest request) { return startBulkDeploymentAsync(request, null); } @Override public java.util.concurrent.Future startBulkDeploymentAsync(final StartBulkDeploymentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartBulkDeploymentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartBulkDeploymentResult call() throws Exception { StartBulkDeploymentResult result = null; try { result = executeStartBulkDeployment(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 stopBulkDeploymentAsync(StopBulkDeploymentRequest request) { return stopBulkDeploymentAsync(request, null); } @Override public java.util.concurrent.Future stopBulkDeploymentAsync(final StopBulkDeploymentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StopBulkDeploymentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StopBulkDeploymentResult call() throws Exception { StopBulkDeploymentResult result = null; try { result = executeStopBulkDeployment(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 updateConnectivityInfoAsync(UpdateConnectivityInfoRequest request) { return updateConnectivityInfoAsync(request, null); } @Override public java.util.concurrent.Future updateConnectivityInfoAsync(final UpdateConnectivityInfoRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateConnectivityInfoRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateConnectivityInfoResult call() throws Exception { UpdateConnectivityInfoResult result = null; try { result = executeUpdateConnectivityInfo(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 updateConnectorDefinitionAsync(UpdateConnectorDefinitionRequest request) { return updateConnectorDefinitionAsync(request, null); } @Override public java.util.concurrent.Future updateConnectorDefinitionAsync(final UpdateConnectorDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateConnectorDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateConnectorDefinitionResult call() throws Exception { UpdateConnectorDefinitionResult result = null; try { result = executeUpdateConnectorDefinition(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 updateCoreDefinitionAsync(UpdateCoreDefinitionRequest request) { return updateCoreDefinitionAsync(request, null); } @Override public java.util.concurrent.Future updateCoreDefinitionAsync(final UpdateCoreDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateCoreDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateCoreDefinitionResult call() throws Exception { UpdateCoreDefinitionResult result = null; try { result = executeUpdateCoreDefinition(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 updateDeviceDefinitionAsync(UpdateDeviceDefinitionRequest request) { return updateDeviceDefinitionAsync(request, null); } @Override public java.util.concurrent.Future updateDeviceDefinitionAsync(final UpdateDeviceDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateDeviceDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateDeviceDefinitionResult call() throws Exception { UpdateDeviceDefinitionResult result = null; try { result = executeUpdateDeviceDefinition(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 updateFunctionDefinitionAsync(UpdateFunctionDefinitionRequest request) { return updateFunctionDefinitionAsync(request, null); } @Override public java.util.concurrent.Future updateFunctionDefinitionAsync(final UpdateFunctionDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateFunctionDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateFunctionDefinitionResult call() throws Exception { UpdateFunctionDefinitionResult result = null; try { result = executeUpdateFunctionDefinition(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 updateGroupAsync(UpdateGroupRequest request) { return updateGroupAsync(request, null); } @Override public java.util.concurrent.Future updateGroupAsync(final UpdateGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGroupResult call() throws Exception { UpdateGroupResult result = null; try { result = executeUpdateGroup(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 updateGroupCertificateConfigurationAsync( UpdateGroupCertificateConfigurationRequest request) { return updateGroupCertificateConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateGroupCertificateConfigurationAsync( final UpdateGroupCertificateConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGroupCertificateConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGroupCertificateConfigurationResult call() throws Exception { UpdateGroupCertificateConfigurationResult result = null; try { result = executeUpdateGroupCertificateConfiguration(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 updateLoggerDefinitionAsync(UpdateLoggerDefinitionRequest request) { return updateLoggerDefinitionAsync(request, null); } @Override public java.util.concurrent.Future updateLoggerDefinitionAsync(final UpdateLoggerDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateLoggerDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateLoggerDefinitionResult call() throws Exception { UpdateLoggerDefinitionResult result = null; try { result = executeUpdateLoggerDefinition(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 updateResourceDefinitionAsync(UpdateResourceDefinitionRequest request) { return updateResourceDefinitionAsync(request, null); } @Override public java.util.concurrent.Future updateResourceDefinitionAsync(final UpdateResourceDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateResourceDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateResourceDefinitionResult call() throws Exception { UpdateResourceDefinitionResult result = null; try { result = executeUpdateResourceDefinition(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 updateSubscriptionDefinitionAsync(UpdateSubscriptionDefinitionRequest request) { return updateSubscriptionDefinitionAsync(request, null); } @Override public java.util.concurrent.Future updateSubscriptionDefinitionAsync(final UpdateSubscriptionDefinitionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSubscriptionDefinitionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSubscriptionDefinitionResult call() throws Exception { UpdateSubscriptionDefinitionResult result = null; try { result = executeUpdateSubscriptionDefinition(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