com.amazonaws.services.robomaker.AWSRoboMakerAsyncClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-robomaker Show documentation
Show all versions of aws-java-sdk-robomaker Show documentation
The AWS Java SDK for AWS RoboMaker module holds the client classes that are used for communicating with AWS RoboMaker Service
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.robomaker;
import javax.annotation.Generated;
import com.amazonaws.services.robomaker.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing RoboMaker 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.
*
*
* This section provides documentation for the AWS RoboMaker API operations.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSRoboMakerAsyncClient extends AWSRoboMakerClient implements AWSRoboMakerAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AWSRoboMakerAsyncClientBuilder asyncBuilder() {
return AWSRoboMakerAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on RoboMaker using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSRoboMakerAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on RoboMaker using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSRoboMakerAsyncClient(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 batchDeleteWorldsAsync(BatchDeleteWorldsRequest request) {
return batchDeleteWorldsAsync(request, null);
}
@Override
public java.util.concurrent.Future batchDeleteWorldsAsync(final BatchDeleteWorldsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchDeleteWorldsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchDeleteWorldsResult call() throws Exception {
BatchDeleteWorldsResult result = null;
try {
result = executeBatchDeleteWorlds(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future batchDescribeSimulationJobAsync(BatchDescribeSimulationJobRequest request) {
return batchDescribeSimulationJobAsync(request, null);
}
@Override
public java.util.concurrent.Future batchDescribeSimulationJobAsync(final BatchDescribeSimulationJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchDescribeSimulationJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchDescribeSimulationJobResult call() throws Exception {
BatchDescribeSimulationJobResult result = null;
try {
result = executeBatchDescribeSimulationJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future cancelDeploymentJobAsync(CancelDeploymentJobRequest request) {
return cancelDeploymentJobAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future cancelDeploymentJobAsync(final CancelDeploymentJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelDeploymentJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelDeploymentJobResult call() throws Exception {
CancelDeploymentJobResult result = null;
try {
result = executeCancelDeploymentJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelSimulationJobAsync(CancelSimulationJobRequest request) {
return cancelSimulationJobAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelSimulationJobAsync(final CancelSimulationJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelSimulationJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelSimulationJobResult call() throws Exception {
CancelSimulationJobResult result = null;
try {
result = executeCancelSimulationJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelSimulationJobBatchAsync(CancelSimulationJobBatchRequest request) {
return cancelSimulationJobBatchAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelSimulationJobBatchAsync(final CancelSimulationJobBatchRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelSimulationJobBatchRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelSimulationJobBatchResult call() throws Exception {
CancelSimulationJobBatchResult result = null;
try {
result = executeCancelSimulationJobBatch(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelWorldExportJobAsync(CancelWorldExportJobRequest request) {
return cancelWorldExportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelWorldExportJobAsync(final CancelWorldExportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelWorldExportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelWorldExportJobResult call() throws Exception {
CancelWorldExportJobResult result = null;
try {
result = executeCancelWorldExportJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelWorldGenerationJobAsync(CancelWorldGenerationJobRequest request) {
return cancelWorldGenerationJobAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelWorldGenerationJobAsync(final CancelWorldGenerationJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelWorldGenerationJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelWorldGenerationJobResult call() throws Exception {
CancelWorldGenerationJobResult result = null;
try {
result = executeCancelWorldGenerationJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future createDeploymentJobAsync(CreateDeploymentJobRequest request) {
return createDeploymentJobAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future createDeploymentJobAsync(final CreateDeploymentJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDeploymentJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDeploymentJobResult call() throws Exception {
CreateDeploymentJobResult result = null;
try {
result = executeCreateDeploymentJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future createFleetAsync(CreateFleetRequest request) {
return createFleetAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future createFleetAsync(final CreateFleetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateFleetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateFleetResult call() throws Exception {
CreateFleetResult result = null;
try {
result = executeCreateFleet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future createRobotAsync(CreateRobotRequest request) {
return createRobotAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future createRobotAsync(final CreateRobotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRobotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRobotResult call() throws Exception {
CreateRobotResult result = null;
try {
result = executeCreateRobot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createRobotApplicationAsync(CreateRobotApplicationRequest request) {
return createRobotApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future createRobotApplicationAsync(final CreateRobotApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRobotApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRobotApplicationResult call() throws Exception {
CreateRobotApplicationResult result = null;
try {
result = executeCreateRobotApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createRobotApplicationVersionAsync(CreateRobotApplicationVersionRequest request) {
return createRobotApplicationVersionAsync(request, null);
}
@Override
public java.util.concurrent.Future createRobotApplicationVersionAsync(
final CreateRobotApplicationVersionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateRobotApplicationVersionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateRobotApplicationVersionResult call() throws Exception {
CreateRobotApplicationVersionResult result = null;
try {
result = executeCreateRobotApplicationVersion(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createSimulationApplicationAsync(CreateSimulationApplicationRequest request) {
return createSimulationApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future createSimulationApplicationAsync(final CreateSimulationApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSimulationApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSimulationApplicationResult call() throws Exception {
CreateSimulationApplicationResult result = null;
try {
result = executeCreateSimulationApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createSimulationApplicationVersionAsync(
CreateSimulationApplicationVersionRequest request) {
return createSimulationApplicationVersionAsync(request, null);
}
@Override
public java.util.concurrent.Future createSimulationApplicationVersionAsync(
final CreateSimulationApplicationVersionRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSimulationApplicationVersionRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSimulationApplicationVersionResult call() throws Exception {
CreateSimulationApplicationVersionResult result = null;
try {
result = executeCreateSimulationApplicationVersion(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createSimulationJobAsync(CreateSimulationJobRequest request) {
return createSimulationJobAsync(request, null);
}
@Override
public java.util.concurrent.Future createSimulationJobAsync(final CreateSimulationJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSimulationJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSimulationJobResult call() throws Exception {
CreateSimulationJobResult result = null;
try {
result = executeCreateSimulationJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createWorldExportJobAsync(CreateWorldExportJobRequest request) {
return createWorldExportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future createWorldExportJobAsync(final CreateWorldExportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateWorldExportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateWorldExportJobResult call() throws Exception {
CreateWorldExportJobResult result = null;
try {
result = executeCreateWorldExportJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createWorldGenerationJobAsync(CreateWorldGenerationJobRequest request) {
return createWorldGenerationJobAsync(request, null);
}
@Override
public java.util.concurrent.Future createWorldGenerationJobAsync(final CreateWorldGenerationJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateWorldGenerationJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateWorldGenerationJobResult call() throws Exception {
CreateWorldGenerationJobResult result = null;
try {
result = executeCreateWorldGenerationJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createWorldTemplateAsync(CreateWorldTemplateRequest request) {
return createWorldTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future createWorldTemplateAsync(final CreateWorldTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateWorldTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateWorldTemplateResult call() throws Exception {
CreateWorldTemplateResult result = null;
try {
result = executeCreateWorldTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future deleteFleetAsync(DeleteFleetRequest request) {
return deleteFleetAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future deleteFleetAsync(final DeleteFleetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFleetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFleetResult call() throws Exception {
DeleteFleetResult result = null;
try {
result = executeDeleteFleet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future deleteRobotAsync(DeleteRobotRequest request) {
return deleteRobotAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future deleteRobotAsync(final DeleteRobotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRobotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRobotResult call() throws Exception {
DeleteRobotResult result = null;
try {
result = executeDeleteRobot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteRobotApplicationAsync(DeleteRobotApplicationRequest request) {
return deleteRobotApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteRobotApplicationAsync(final DeleteRobotApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteRobotApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteRobotApplicationResult call() throws Exception {
DeleteRobotApplicationResult result = null;
try {
result = executeDeleteRobotApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteSimulationApplicationAsync(DeleteSimulationApplicationRequest request) {
return deleteSimulationApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteSimulationApplicationAsync(final DeleteSimulationApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteSimulationApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteSimulationApplicationResult call() throws Exception {
DeleteSimulationApplicationResult result = null;
try {
result = executeDeleteSimulationApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteWorldTemplateAsync(DeleteWorldTemplateRequest request) {
return deleteWorldTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteWorldTemplateAsync(final DeleteWorldTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteWorldTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteWorldTemplateResult call() throws Exception {
DeleteWorldTemplateResult result = null;
try {
result = executeDeleteWorldTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future deregisterRobotAsync(DeregisterRobotRequest request) {
return deregisterRobotAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future deregisterRobotAsync(final DeregisterRobotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeregisterRobotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeregisterRobotResult call() throws Exception {
DeregisterRobotResult result = null;
try {
result = executeDeregisterRobot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future describeDeploymentJobAsync(DescribeDeploymentJobRequest request) {
return describeDeploymentJobAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future describeDeploymentJobAsync(final DescribeDeploymentJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDeploymentJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDeploymentJobResult call() throws Exception {
DescribeDeploymentJobResult result = null;
try {
result = executeDescribeDeploymentJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future describeFleetAsync(DescribeFleetRequest request) {
return describeFleetAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future describeFleetAsync(final DescribeFleetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFleetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFleetResult call() throws Exception {
DescribeFleetResult result = null;
try {
result = executeDescribeFleet(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future describeRobotAsync(DescribeRobotRequest request) {
return describeRobotAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future describeRobotAsync(final DescribeRobotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRobotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRobotResult call() throws Exception {
DescribeRobotResult result = null;
try {
result = executeDescribeRobot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeRobotApplicationAsync(DescribeRobotApplicationRequest request) {
return describeRobotApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeRobotApplicationAsync(final DescribeRobotApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeRobotApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeRobotApplicationResult call() throws Exception {
DescribeRobotApplicationResult result = null;
try {
result = executeDescribeRobotApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeSimulationApplicationAsync(DescribeSimulationApplicationRequest request) {
return describeSimulationApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeSimulationApplicationAsync(
final DescribeSimulationApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeSimulationApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeSimulationApplicationResult call() throws Exception {
DescribeSimulationApplicationResult result = null;
try {
result = executeDescribeSimulationApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeSimulationJobAsync(DescribeSimulationJobRequest request) {
return describeSimulationJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeSimulationJobAsync(final DescribeSimulationJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeSimulationJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeSimulationJobResult call() throws Exception {
DescribeSimulationJobResult result = null;
try {
result = executeDescribeSimulationJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeSimulationJobBatchAsync(DescribeSimulationJobBatchRequest request) {
return describeSimulationJobBatchAsync(request, null);
}
@Override
public java.util.concurrent.Future describeSimulationJobBatchAsync(final DescribeSimulationJobBatchRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeSimulationJobBatchRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeSimulationJobBatchResult call() throws Exception {
DescribeSimulationJobBatchResult result = null;
try {
result = executeDescribeSimulationJobBatch(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeWorldAsync(DescribeWorldRequest request) {
return describeWorldAsync(request, null);
}
@Override
public java.util.concurrent.Future describeWorldAsync(final DescribeWorldRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeWorldRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeWorldResult call() throws Exception {
DescribeWorldResult result = null;
try {
result = executeDescribeWorld(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeWorldExportJobAsync(DescribeWorldExportJobRequest request) {
return describeWorldExportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeWorldExportJobAsync(final DescribeWorldExportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeWorldExportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeWorldExportJobResult call() throws Exception {
DescribeWorldExportJobResult result = null;
try {
result = executeDescribeWorldExportJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeWorldGenerationJobAsync(DescribeWorldGenerationJobRequest request) {
return describeWorldGenerationJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeWorldGenerationJobAsync(final DescribeWorldGenerationJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeWorldGenerationJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeWorldGenerationJobResult call() throws Exception {
DescribeWorldGenerationJobResult result = null;
try {
result = executeDescribeWorldGenerationJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeWorldTemplateAsync(DescribeWorldTemplateRequest request) {
return describeWorldTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future describeWorldTemplateAsync(final DescribeWorldTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeWorldTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeWorldTemplateResult call() throws Exception {
DescribeWorldTemplateResult result = null;
try {
result = executeDescribeWorldTemplate(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future getWorldTemplateBodyAsync(GetWorldTemplateBodyRequest request) {
return getWorldTemplateBodyAsync(request, null);
}
@Override
public java.util.concurrent.Future getWorldTemplateBodyAsync(final GetWorldTemplateBodyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetWorldTemplateBodyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetWorldTemplateBodyResult call() throws Exception {
GetWorldTemplateBodyResult result = null;
try {
result = executeGetWorldTemplateBody(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future listDeploymentJobsAsync(ListDeploymentJobsRequest request) {
return listDeploymentJobsAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future listDeploymentJobsAsync(final ListDeploymentJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDeploymentJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDeploymentJobsResult call() throws Exception {
ListDeploymentJobsResult result = null;
try {
result = executeListDeploymentJobs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future listFleetsAsync(ListFleetsRequest request) {
return listFleetsAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future listFleetsAsync(final ListFleetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListFleetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListFleetsResult call() throws Exception {
ListFleetsResult result = null;
try {
result = executeListFleets(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listRobotApplicationsAsync(ListRobotApplicationsRequest request) {
return listRobotApplicationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listRobotApplicationsAsync(final ListRobotApplicationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRobotApplicationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRobotApplicationsResult call() throws Exception {
ListRobotApplicationsResult result = null;
try {
result = executeListRobotApplications(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future listRobotsAsync(ListRobotsRequest request) {
return listRobotsAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future listRobotsAsync(final ListRobotsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListRobotsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListRobotsResult call() throws Exception {
ListRobotsResult result = null;
try {
result = executeListRobots(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listSimulationApplicationsAsync(ListSimulationApplicationsRequest request) {
return listSimulationApplicationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listSimulationApplicationsAsync(final ListSimulationApplicationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListSimulationApplicationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListSimulationApplicationsResult call() throws Exception {
ListSimulationApplicationsResult result = null;
try {
result = executeListSimulationApplications(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listSimulationJobBatchesAsync(ListSimulationJobBatchesRequest request) {
return listSimulationJobBatchesAsync(request, null);
}
@Override
public java.util.concurrent.Future listSimulationJobBatchesAsync(final ListSimulationJobBatchesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListSimulationJobBatchesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListSimulationJobBatchesResult call() throws Exception {
ListSimulationJobBatchesResult result = null;
try {
result = executeListSimulationJobBatches(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listSimulationJobsAsync(ListSimulationJobsRequest request) {
return listSimulationJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future listSimulationJobsAsync(final ListSimulationJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListSimulationJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListSimulationJobsResult call() throws Exception {
ListSimulationJobsResult result = null;
try {
result = executeListSimulationJobs(finalRequest);
} catch (Exception 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 listWorldExportJobsAsync(ListWorldExportJobsRequest request) {
return listWorldExportJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future listWorldExportJobsAsync(final ListWorldExportJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListWorldExportJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListWorldExportJobsResult call() throws Exception {
ListWorldExportJobsResult result = null;
try {
result = executeListWorldExportJobs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listWorldGenerationJobsAsync(ListWorldGenerationJobsRequest request) {
return listWorldGenerationJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future listWorldGenerationJobsAsync(final ListWorldGenerationJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListWorldGenerationJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListWorldGenerationJobsResult call() throws Exception {
ListWorldGenerationJobsResult result = null;
try {
result = executeListWorldGenerationJobs(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listWorldTemplatesAsync(ListWorldTemplatesRequest request) {
return listWorldTemplatesAsync(request, null);
}
@Override
public java.util.concurrent.Future listWorldTemplatesAsync(final ListWorldTemplatesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListWorldTemplatesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListWorldTemplatesResult call() throws Exception {
ListWorldTemplatesResult result = null;
try {
result = executeListWorldTemplates(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listWorldsAsync(ListWorldsRequest request) {
return listWorldsAsync(request, null);
}
@Override
public java.util.concurrent.Future listWorldsAsync(final ListWorldsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListWorldsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListWorldsResult call() throws Exception {
ListWorldsResult result = null;
try {
result = executeListWorlds(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future registerRobotAsync(RegisterRobotRequest request) {
return registerRobotAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future registerRobotAsync(final RegisterRobotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final RegisterRobotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public RegisterRobotResult call() throws Exception {
RegisterRobotResult result = null;
try {
result = executeRegisterRobot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future restartSimulationJobAsync(RestartSimulationJobRequest request) {
return restartSimulationJobAsync(request, null);
}
@Override
public java.util.concurrent.Future restartSimulationJobAsync(final RestartSimulationJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final RestartSimulationJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public RestartSimulationJobResult call() throws Exception {
RestartSimulationJobResult result = null;
try {
result = executeRestartSimulationJob(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future startSimulationJobBatchAsync(StartSimulationJobBatchRequest request) {
return startSimulationJobBatchAsync(request, null);
}
@Override
public java.util.concurrent.Future startSimulationJobBatchAsync(final StartSimulationJobBatchRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final StartSimulationJobBatchRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public StartSimulationJobBatchResult call() throws Exception {
StartSimulationJobBatchResult result = null;
try {
result = executeStartSimulationJobBatch(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future syncDeploymentJobAsync(SyncDeploymentJobRequest request) {
return syncDeploymentJobAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future syncDeploymentJobAsync(final SyncDeploymentJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final SyncDeploymentJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public SyncDeploymentJobResult call() throws Exception {
SyncDeploymentJobResult result = null;
try {
result = executeSyncDeploymentJob(finalRequest);
} catch (Exception 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 updateRobotApplicationAsync(UpdateRobotApplicationRequest request) {
return updateRobotApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future updateRobotApplicationAsync(final UpdateRobotApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateRobotApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateRobotApplicationResult call() throws Exception {
UpdateRobotApplicationResult result = null;
try {
result = executeUpdateRobotApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateSimulationApplicationAsync(UpdateSimulationApplicationRequest request) {
return updateSimulationApplicationAsync(request, null);
}
@Override
public java.util.concurrent.Future updateSimulationApplicationAsync(final UpdateSimulationApplicationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateSimulationApplicationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateSimulationApplicationResult call() throws Exception {
UpdateSimulationApplicationResult result = null;
try {
result = executeUpdateSimulationApplication(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateWorldTemplateAsync(UpdateWorldTemplateRequest request) {
return updateWorldTemplateAsync(request, null);
}
@Override
public java.util.concurrent.Future updateWorldTemplateAsync(final UpdateWorldTemplateRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateWorldTemplateRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateWorldTemplateResult call() throws Exception {
UpdateWorldTemplateResult result = null;
try {
result = executeUpdateWorldTemplate(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