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

com.amazonaws.services.location.AmazonLocationAsyncClient Maven / Gradle / Ivy

Go to download

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

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

import javax.annotation.Generated;

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

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing Amazon Location Service 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.
 * 

*

* "Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing" *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonLocationAsyncClient extends AmazonLocationClient implements AmazonLocationAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AmazonLocationAsyncClientBuilder asyncBuilder() { return AmazonLocationAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Location Service using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. */ AmazonLocationAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Location Service using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AmazonLocationAsyncClient(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 associateTrackerConsumerAsync(AssociateTrackerConsumerRequest request) { return associateTrackerConsumerAsync(request, null); } @Override public java.util.concurrent.Future associateTrackerConsumerAsync(final AssociateTrackerConsumerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssociateTrackerConsumerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssociateTrackerConsumerResult call() throws Exception { AssociateTrackerConsumerResult result = null; try { result = executeAssociateTrackerConsumer(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchDeleteDevicePositionHistoryAsync( BatchDeleteDevicePositionHistoryRequest request) { return batchDeleteDevicePositionHistoryAsync(request, null); } @Override public java.util.concurrent.Future batchDeleteDevicePositionHistoryAsync( final BatchDeleteDevicePositionHistoryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchDeleteDevicePositionHistoryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchDeleteDevicePositionHistoryResult call() throws Exception { BatchDeleteDevicePositionHistoryResult result = null; try { result = executeBatchDeleteDevicePositionHistory(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchDeleteGeofenceAsync(BatchDeleteGeofenceRequest request) { return batchDeleteGeofenceAsync(request, null); } @Override public java.util.concurrent.Future batchDeleteGeofenceAsync(final BatchDeleteGeofenceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchDeleteGeofenceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchDeleteGeofenceResult call() throws Exception { BatchDeleteGeofenceResult result = null; try { result = executeBatchDeleteGeofence(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchEvaluateGeofencesAsync(BatchEvaluateGeofencesRequest request) { return batchEvaluateGeofencesAsync(request, null); } @Override public java.util.concurrent.Future batchEvaluateGeofencesAsync(final BatchEvaluateGeofencesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchEvaluateGeofencesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchEvaluateGeofencesResult call() throws Exception { BatchEvaluateGeofencesResult result = null; try { result = executeBatchEvaluateGeofences(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchGetDevicePositionAsync(BatchGetDevicePositionRequest request) { return batchGetDevicePositionAsync(request, null); } @Override public java.util.concurrent.Future batchGetDevicePositionAsync(final BatchGetDevicePositionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchGetDevicePositionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchGetDevicePositionResult call() throws Exception { BatchGetDevicePositionResult result = null; try { result = executeBatchGetDevicePosition(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchPutGeofenceAsync(BatchPutGeofenceRequest request) { return batchPutGeofenceAsync(request, null); } @Override public java.util.concurrent.Future batchPutGeofenceAsync(final BatchPutGeofenceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchPutGeofenceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchPutGeofenceResult call() throws Exception { BatchPutGeofenceResult result = null; try { result = executeBatchPutGeofence(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future batchUpdateDevicePositionAsync(BatchUpdateDevicePositionRequest request) { return batchUpdateDevicePositionAsync(request, null); } @Override public java.util.concurrent.Future batchUpdateDevicePositionAsync(final BatchUpdateDevicePositionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchUpdateDevicePositionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchUpdateDevicePositionResult call() throws Exception { BatchUpdateDevicePositionResult result = null; try { result = executeBatchUpdateDevicePosition(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future calculateRouteAsync(CalculateRouteRequest request) { return calculateRouteAsync(request, null); } @Override public java.util.concurrent.Future calculateRouteAsync(final CalculateRouteRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CalculateRouteRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CalculateRouteResult call() throws Exception { CalculateRouteResult result = null; try { result = executeCalculateRoute(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future calculateRouteMatrixAsync(CalculateRouteMatrixRequest request) { return calculateRouteMatrixAsync(request, null); } @Override public java.util.concurrent.Future calculateRouteMatrixAsync(final CalculateRouteMatrixRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CalculateRouteMatrixRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CalculateRouteMatrixResult call() throws Exception { CalculateRouteMatrixResult result = null; try { result = executeCalculateRouteMatrix(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createGeofenceCollectionAsync(CreateGeofenceCollectionRequest request) { return createGeofenceCollectionAsync(request, null); } @Override public java.util.concurrent.Future createGeofenceCollectionAsync(final CreateGeofenceCollectionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateGeofenceCollectionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateGeofenceCollectionResult call() throws Exception { CreateGeofenceCollectionResult result = null; try { result = executeCreateGeofenceCollection(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createKeyAsync(CreateKeyRequest request) { return createKeyAsync(request, null); } @Override public java.util.concurrent.Future createKeyAsync(final CreateKeyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateKeyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateKeyResult call() throws Exception { CreateKeyResult result = null; try { result = executeCreateKey(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createMapAsync(CreateMapRequest request) { return createMapAsync(request, null); } @Override public java.util.concurrent.Future createMapAsync(final CreateMapRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMapRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMapResult call() throws Exception { CreateMapResult result = null; try { result = executeCreateMap(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createPlaceIndexAsync(CreatePlaceIndexRequest request) { return createPlaceIndexAsync(request, null); } @Override public java.util.concurrent.Future createPlaceIndexAsync(final CreatePlaceIndexRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreatePlaceIndexRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreatePlaceIndexResult call() throws Exception { CreatePlaceIndexResult result = null; try { result = executeCreatePlaceIndex(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createRouteCalculatorAsync(CreateRouteCalculatorRequest request) { return createRouteCalculatorAsync(request, null); } @Override public java.util.concurrent.Future createRouteCalculatorAsync(final CreateRouteCalculatorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateRouteCalculatorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateRouteCalculatorResult call() throws Exception { CreateRouteCalculatorResult result = null; try { result = executeCreateRouteCalculator(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createTrackerAsync(CreateTrackerRequest request) { return createTrackerAsync(request, null); } @Override public java.util.concurrent.Future createTrackerAsync(final CreateTrackerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateTrackerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateTrackerResult call() throws Exception { CreateTrackerResult result = null; try { result = executeCreateTracker(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteGeofenceCollectionAsync(DeleteGeofenceCollectionRequest request) { return deleteGeofenceCollectionAsync(request, null); } @Override public java.util.concurrent.Future deleteGeofenceCollectionAsync(final DeleteGeofenceCollectionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteGeofenceCollectionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteGeofenceCollectionResult call() throws Exception { DeleteGeofenceCollectionResult result = null; try { result = executeDeleteGeofenceCollection(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteKeyAsync(DeleteKeyRequest request) { return deleteKeyAsync(request, null); } @Override public java.util.concurrent.Future deleteKeyAsync(final DeleteKeyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteKeyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteKeyResult call() throws Exception { DeleteKeyResult result = null; try { result = executeDeleteKey(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteMapAsync(DeleteMapRequest request) { return deleteMapAsync(request, null); } @Override public java.util.concurrent.Future deleteMapAsync(final DeleteMapRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMapRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMapResult call() throws Exception { DeleteMapResult result = null; try { result = executeDeleteMap(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deletePlaceIndexAsync(DeletePlaceIndexRequest request) { return deletePlaceIndexAsync(request, null); } @Override public java.util.concurrent.Future deletePlaceIndexAsync(final DeletePlaceIndexRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeletePlaceIndexRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeletePlaceIndexResult call() throws Exception { DeletePlaceIndexResult result = null; try { result = executeDeletePlaceIndex(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteRouteCalculatorAsync(DeleteRouteCalculatorRequest request) { return deleteRouteCalculatorAsync(request, null); } @Override public java.util.concurrent.Future deleteRouteCalculatorAsync(final DeleteRouteCalculatorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteRouteCalculatorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteRouteCalculatorResult call() throws Exception { DeleteRouteCalculatorResult result = null; try { result = executeDeleteRouteCalculator(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteTrackerAsync(DeleteTrackerRequest request) { return deleteTrackerAsync(request, null); } @Override public java.util.concurrent.Future deleteTrackerAsync(final DeleteTrackerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteTrackerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteTrackerResult call() throws Exception { DeleteTrackerResult result = null; try { result = executeDeleteTracker(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeGeofenceCollectionAsync(DescribeGeofenceCollectionRequest request) { return describeGeofenceCollectionAsync(request, null); } @Override public java.util.concurrent.Future describeGeofenceCollectionAsync(final DescribeGeofenceCollectionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeGeofenceCollectionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeGeofenceCollectionResult call() throws Exception { DescribeGeofenceCollectionResult result = null; try { result = executeDescribeGeofenceCollection(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeKeyAsync(DescribeKeyRequest request) { return describeKeyAsync(request, null); } @Override public java.util.concurrent.Future describeKeyAsync(final DescribeKeyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeKeyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeKeyResult call() throws Exception { DescribeKeyResult result = null; try { result = executeDescribeKey(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeMapAsync(DescribeMapRequest request) { return describeMapAsync(request, null); } @Override public java.util.concurrent.Future describeMapAsync(final DescribeMapRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMapRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMapResult call() throws Exception { DescribeMapResult result = null; try { result = executeDescribeMap(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describePlaceIndexAsync(DescribePlaceIndexRequest request) { return describePlaceIndexAsync(request, null); } @Override public java.util.concurrent.Future describePlaceIndexAsync(final DescribePlaceIndexRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribePlaceIndexRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribePlaceIndexResult call() throws Exception { DescribePlaceIndexResult result = null; try { result = executeDescribePlaceIndex(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeRouteCalculatorAsync(DescribeRouteCalculatorRequest request) { return describeRouteCalculatorAsync(request, null); } @Override public java.util.concurrent.Future describeRouteCalculatorAsync(final DescribeRouteCalculatorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeRouteCalculatorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeRouteCalculatorResult call() throws Exception { DescribeRouteCalculatorResult result = null; try { result = executeDescribeRouteCalculator(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeTrackerAsync(DescribeTrackerRequest request) { return describeTrackerAsync(request, null); } @Override public java.util.concurrent.Future describeTrackerAsync(final DescribeTrackerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeTrackerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeTrackerResult call() throws Exception { DescribeTrackerResult result = null; try { result = executeDescribeTracker(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future disassociateTrackerConsumerAsync(DisassociateTrackerConsumerRequest request) { return disassociateTrackerConsumerAsync(request, null); } @Override public java.util.concurrent.Future disassociateTrackerConsumerAsync(final DisassociateTrackerConsumerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DisassociateTrackerConsumerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DisassociateTrackerConsumerResult call() throws Exception { DisassociateTrackerConsumerResult result = null; try { result = executeDisassociateTrackerConsumer(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future forecastGeofenceEventsAsync(ForecastGeofenceEventsRequest request) { return forecastGeofenceEventsAsync(request, null); } @Override public java.util.concurrent.Future forecastGeofenceEventsAsync(final ForecastGeofenceEventsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ForecastGeofenceEventsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ForecastGeofenceEventsResult call() throws Exception { ForecastGeofenceEventsResult result = null; try { result = executeForecastGeofenceEvents(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getDevicePositionAsync(GetDevicePositionRequest request) { return getDevicePositionAsync(request, null); } @Override public java.util.concurrent.Future getDevicePositionAsync(final GetDevicePositionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDevicePositionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDevicePositionResult call() throws Exception { GetDevicePositionResult result = null; try { result = executeGetDevicePosition(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getDevicePositionHistoryAsync(GetDevicePositionHistoryRequest request) { return getDevicePositionHistoryAsync(request, null); } @Override public java.util.concurrent.Future getDevicePositionHistoryAsync(final GetDevicePositionHistoryRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDevicePositionHistoryRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDevicePositionHistoryResult call() throws Exception { GetDevicePositionHistoryResult result = null; try { result = executeGetDevicePositionHistory(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getGeofenceAsync(GetGeofenceRequest request) { return getGeofenceAsync(request, null); } @Override public java.util.concurrent.Future getGeofenceAsync(final GetGeofenceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetGeofenceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetGeofenceResult call() throws Exception { GetGeofenceResult result = null; try { result = executeGetGeofence(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMapGlyphsAsync(GetMapGlyphsRequest request) { return getMapGlyphsAsync(request, null); } @Override public java.util.concurrent.Future getMapGlyphsAsync(final GetMapGlyphsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMapGlyphsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMapGlyphsResult call() throws Exception { GetMapGlyphsResult result = null; try { result = executeGetMapGlyphs(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMapSpritesAsync(GetMapSpritesRequest request) { return getMapSpritesAsync(request, null); } @Override public java.util.concurrent.Future getMapSpritesAsync(final GetMapSpritesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMapSpritesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMapSpritesResult call() throws Exception { GetMapSpritesResult result = null; try { result = executeGetMapSprites(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMapStyleDescriptorAsync(GetMapStyleDescriptorRequest request) { return getMapStyleDescriptorAsync(request, null); } @Override public java.util.concurrent.Future getMapStyleDescriptorAsync(final GetMapStyleDescriptorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMapStyleDescriptorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMapStyleDescriptorResult call() throws Exception { GetMapStyleDescriptorResult result = null; try { result = executeGetMapStyleDescriptor(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMapTileAsync(GetMapTileRequest request) { return getMapTileAsync(request, null); } @Override public java.util.concurrent.Future getMapTileAsync(final GetMapTileRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMapTileRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMapTileResult call() throws Exception { GetMapTileResult result = null; try { result = executeGetMapTile(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getPlaceAsync(GetPlaceRequest request) { return getPlaceAsync(request, null); } @Override public java.util.concurrent.Future getPlaceAsync(final GetPlaceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetPlaceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetPlaceResult call() throws Exception { GetPlaceResult result = null; try { result = executeGetPlace(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listDevicePositionsAsync(ListDevicePositionsRequest request) { return listDevicePositionsAsync(request, null); } @Override public java.util.concurrent.Future listDevicePositionsAsync(final ListDevicePositionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDevicePositionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDevicePositionsResult call() throws Exception { ListDevicePositionsResult result = null; try { result = executeListDevicePositions(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listGeofenceCollectionsAsync(ListGeofenceCollectionsRequest request) { return listGeofenceCollectionsAsync(request, null); } @Override public java.util.concurrent.Future listGeofenceCollectionsAsync(final ListGeofenceCollectionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGeofenceCollectionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGeofenceCollectionsResult call() throws Exception { ListGeofenceCollectionsResult result = null; try { result = executeListGeofenceCollections(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listGeofencesAsync(ListGeofencesRequest request) { return listGeofencesAsync(request, null); } @Override public java.util.concurrent.Future listGeofencesAsync(final ListGeofencesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGeofencesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGeofencesResult call() throws Exception { ListGeofencesResult result = null; try { result = executeListGeofences(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listKeysAsync(ListKeysRequest request) { return listKeysAsync(request, null); } @Override public java.util.concurrent.Future listKeysAsync(final ListKeysRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListKeysRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListKeysResult call() throws Exception { ListKeysResult result = null; try { result = executeListKeys(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listMapsAsync(ListMapsRequest request) { return listMapsAsync(request, null); } @Override public java.util.concurrent.Future listMapsAsync(final ListMapsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMapsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMapsResult call() throws Exception { ListMapsResult result = null; try { result = executeListMaps(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listPlaceIndexesAsync(ListPlaceIndexesRequest request) { return listPlaceIndexesAsync(request, null); } @Override public java.util.concurrent.Future listPlaceIndexesAsync(final ListPlaceIndexesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListPlaceIndexesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListPlaceIndexesResult call() throws Exception { ListPlaceIndexesResult result = null; try { result = executeListPlaceIndexes(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listRouteCalculatorsAsync(ListRouteCalculatorsRequest request) { return listRouteCalculatorsAsync(request, null); } @Override public java.util.concurrent.Future listRouteCalculatorsAsync(final ListRouteCalculatorsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRouteCalculatorsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRouteCalculatorsResult call() throws Exception { ListRouteCalculatorsResult result = null; try { result = executeListRouteCalculators(finalRequest); } catch (Exception 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 listTrackerConsumersAsync(ListTrackerConsumersRequest request) { return listTrackerConsumersAsync(request, null); } @Override public java.util.concurrent.Future listTrackerConsumersAsync(final ListTrackerConsumersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTrackerConsumersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTrackerConsumersResult call() throws Exception { ListTrackerConsumersResult result = null; try { result = executeListTrackerConsumers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listTrackersAsync(ListTrackersRequest request) { return listTrackersAsync(request, null); } @Override public java.util.concurrent.Future listTrackersAsync(final ListTrackersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTrackersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTrackersResult call() throws Exception { ListTrackersResult result = null; try { result = executeListTrackers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putGeofenceAsync(PutGeofenceRequest request) { return putGeofenceAsync(request, null); } @Override public java.util.concurrent.Future putGeofenceAsync(final PutGeofenceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutGeofenceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutGeofenceResult call() throws Exception { PutGeofenceResult result = null; try { result = executePutGeofence(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future searchPlaceIndexForPositionAsync(SearchPlaceIndexForPositionRequest request) { return searchPlaceIndexForPositionAsync(request, null); } @Override public java.util.concurrent.Future searchPlaceIndexForPositionAsync(final SearchPlaceIndexForPositionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchPlaceIndexForPositionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchPlaceIndexForPositionResult call() throws Exception { SearchPlaceIndexForPositionResult result = null; try { result = executeSearchPlaceIndexForPosition(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future searchPlaceIndexForSuggestionsAsync(SearchPlaceIndexForSuggestionsRequest request) { return searchPlaceIndexForSuggestionsAsync(request, null); } @Override public java.util.concurrent.Future searchPlaceIndexForSuggestionsAsync( final SearchPlaceIndexForSuggestionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchPlaceIndexForSuggestionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchPlaceIndexForSuggestionsResult call() throws Exception { SearchPlaceIndexForSuggestionsResult result = null; try { result = executeSearchPlaceIndexForSuggestions(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future searchPlaceIndexForTextAsync(SearchPlaceIndexForTextRequest request) { return searchPlaceIndexForTextAsync(request, null); } @Override public java.util.concurrent.Future searchPlaceIndexForTextAsync(final SearchPlaceIndexForTextRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchPlaceIndexForTextRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchPlaceIndexForTextResult call() throws Exception { SearchPlaceIndexForTextResult result = null; try { result = executeSearchPlaceIndexForText(finalRequest); } catch (Exception 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 updateGeofenceCollectionAsync(UpdateGeofenceCollectionRequest request) { return updateGeofenceCollectionAsync(request, null); } @Override public java.util.concurrent.Future updateGeofenceCollectionAsync(final UpdateGeofenceCollectionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGeofenceCollectionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGeofenceCollectionResult call() throws Exception { UpdateGeofenceCollectionResult result = null; try { result = executeUpdateGeofenceCollection(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateKeyAsync(UpdateKeyRequest request) { return updateKeyAsync(request, null); } @Override public java.util.concurrent.Future updateKeyAsync(final UpdateKeyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateKeyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateKeyResult call() throws Exception { UpdateKeyResult result = null; try { result = executeUpdateKey(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateMapAsync(UpdateMapRequest request) { return updateMapAsync(request, null); } @Override public java.util.concurrent.Future updateMapAsync(final UpdateMapRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMapRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMapResult call() throws Exception { UpdateMapResult result = null; try { result = executeUpdateMap(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updatePlaceIndexAsync(UpdatePlaceIndexRequest request) { return updatePlaceIndexAsync(request, null); } @Override public java.util.concurrent.Future updatePlaceIndexAsync(final UpdatePlaceIndexRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdatePlaceIndexRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdatePlaceIndexResult call() throws Exception { UpdatePlaceIndexResult result = null; try { result = executeUpdatePlaceIndex(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateRouteCalculatorAsync(UpdateRouteCalculatorRequest request) { return updateRouteCalculatorAsync(request, null); } @Override public java.util.concurrent.Future updateRouteCalculatorAsync(final UpdateRouteCalculatorRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateRouteCalculatorRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateRouteCalculatorResult call() throws Exception { UpdateRouteCalculatorResult result = null; try { result = executeUpdateRouteCalculator(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateTrackerAsync(UpdateTrackerRequest request) { return updateTrackerAsync(request, null); } @Override public java.util.concurrent.Future updateTrackerAsync(final UpdateTrackerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateTrackerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateTrackerResult call() throws Exception { UpdateTrackerResult result = null; try { result = executeUpdateTracker(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future verifyDevicePositionAsync(VerifyDevicePositionRequest request) { return verifyDevicePositionAsync(request, null); } @Override public java.util.concurrent.Future verifyDevicePositionAsync(final VerifyDevicePositionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final VerifyDevicePositionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public VerifyDevicePositionResult call() throws Exception { VerifyDevicePositionResult result = null; try { result = executeVerifyDevicePosition(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