com.amazonaws.services.greengrass.AWSGreengrassAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-greengrass Show documentation
/*
* Copyright 2018-2023 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 getThingRuntimeConfigurationAsync(GetThingRuntimeConfigurationRequest request) {
return getThingRuntimeConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future getThingRuntimeConfigurationAsync(final GetThingRuntimeConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetThingRuntimeConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetThingRuntimeConfigurationResult call() throws Exception {
GetThingRuntimeConfigurationResult result = null;
try {
result = executeGetThingRuntimeConfiguration(finalRequest);
} catch (Exception 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