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

com.amazonaws.services.groundstation.AWSGroundStationAsyncClient Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
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.groundstation;

import javax.annotation.Generated;

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

import java.util.concurrent.ExecutorService;

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

*

* Welcome to the AWS Ground Station API Reference. AWS Ground Station is a fully managed service that enables you to * control satellite communications, downlink and process satellite data, and scale your satellite operations * efficiently and cost-effectively without having to build or manage your own ground station infrastructure. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSGroundStationAsyncClient extends AWSGroundStationClient implements AWSGroundStationAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AWSGroundStationAsyncClientBuilder asyncBuilder() { return AWSGroundStationAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on AWS Ground Station using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSGroundStationAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on AWS Ground Station using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSGroundStationAsyncClient(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 cancelContactAsync(CancelContactRequest request) { return cancelContactAsync(request, null); } @Override public java.util.concurrent.Future cancelContactAsync(final CancelContactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CancelContactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CancelContactResult call() throws Exception { CancelContactResult result = null; try { result = executeCancelContact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createConfigAsync(CreateConfigRequest request) { return createConfigAsync(request, null); } @Override public java.util.concurrent.Future createConfigAsync(final CreateConfigRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateConfigRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateConfigResult call() throws Exception { CreateConfigResult result = null; try { result = executeCreateConfig(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createDataflowEndpointGroupAsync(CreateDataflowEndpointGroupRequest request) { return createDataflowEndpointGroupAsync(request, null); } @Override public java.util.concurrent.Future createDataflowEndpointGroupAsync(final CreateDataflowEndpointGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateDataflowEndpointGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateDataflowEndpointGroupResult call() throws Exception { CreateDataflowEndpointGroupResult result = null; try { result = executeCreateDataflowEndpointGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createEphemerisAsync(CreateEphemerisRequest request) { return createEphemerisAsync(request, null); } @Override public java.util.concurrent.Future createEphemerisAsync(final CreateEphemerisRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateEphemerisRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateEphemerisResult call() throws Exception { CreateEphemerisResult result = null; try { result = executeCreateEphemeris(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createMissionProfileAsync(CreateMissionProfileRequest request) { return createMissionProfileAsync(request, null); } @Override public java.util.concurrent.Future createMissionProfileAsync(final CreateMissionProfileRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMissionProfileRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMissionProfileResult call() throws Exception { CreateMissionProfileResult result = null; try { result = executeCreateMissionProfile(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteConfigAsync(DeleteConfigRequest request) { return deleteConfigAsync(request, null); } @Override public java.util.concurrent.Future deleteConfigAsync(final DeleteConfigRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteConfigRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteConfigResult call() throws Exception { DeleteConfigResult result = null; try { result = executeDeleteConfig(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteDataflowEndpointGroupAsync(DeleteDataflowEndpointGroupRequest request) { return deleteDataflowEndpointGroupAsync(request, null); } @Override public java.util.concurrent.Future deleteDataflowEndpointGroupAsync(final DeleteDataflowEndpointGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteDataflowEndpointGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteDataflowEndpointGroupResult call() throws Exception { DeleteDataflowEndpointGroupResult result = null; try { result = executeDeleteDataflowEndpointGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteEphemerisAsync(DeleteEphemerisRequest request) { return deleteEphemerisAsync(request, null); } @Override public java.util.concurrent.Future deleteEphemerisAsync(final DeleteEphemerisRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteEphemerisRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteEphemerisResult call() throws Exception { DeleteEphemerisResult result = null; try { result = executeDeleteEphemeris(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteMissionProfileAsync(DeleteMissionProfileRequest request) { return deleteMissionProfileAsync(request, null); } @Override public java.util.concurrent.Future deleteMissionProfileAsync(final DeleteMissionProfileRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMissionProfileRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMissionProfileResult call() throws Exception { DeleteMissionProfileResult result = null; try { result = executeDeleteMissionProfile(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeContactAsync(DescribeContactRequest request) { return describeContactAsync(request, null); } @Override public java.util.concurrent.Future describeContactAsync(final DescribeContactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeContactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeContactResult call() throws Exception { DescribeContactResult result = null; try { result = executeDescribeContact(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeEphemerisAsync(DescribeEphemerisRequest request) { return describeEphemerisAsync(request, null); } @Override public java.util.concurrent.Future describeEphemerisAsync(final DescribeEphemerisRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeEphemerisRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeEphemerisResult call() throws Exception { DescribeEphemerisResult result = null; try { result = executeDescribeEphemeris(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAgentConfigurationAsync(GetAgentConfigurationRequest request) { return getAgentConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getAgentConfigurationAsync(final GetAgentConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAgentConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAgentConfigurationResult call() throws Exception { GetAgentConfigurationResult result = null; try { result = executeGetAgentConfiguration(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getConfigAsync(GetConfigRequest request) { return getConfigAsync(request, null); } @Override public java.util.concurrent.Future getConfigAsync(final GetConfigRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetConfigRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetConfigResult call() throws Exception { GetConfigResult result = null; try { result = executeGetConfig(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getDataflowEndpointGroupAsync(GetDataflowEndpointGroupRequest request) { return getDataflowEndpointGroupAsync(request, null); } @Override public java.util.concurrent.Future getDataflowEndpointGroupAsync(final GetDataflowEndpointGroupRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDataflowEndpointGroupRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDataflowEndpointGroupResult call() throws Exception { GetDataflowEndpointGroupResult result = null; try { result = executeGetDataflowEndpointGroup(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMinuteUsageAsync(GetMinuteUsageRequest request) { return getMinuteUsageAsync(request, null); } @Override public java.util.concurrent.Future getMinuteUsageAsync(final GetMinuteUsageRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMinuteUsageRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMinuteUsageResult call() throws Exception { GetMinuteUsageResult result = null; try { result = executeGetMinuteUsage(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getMissionProfileAsync(GetMissionProfileRequest request) { return getMissionProfileAsync(request, null); } @Override public java.util.concurrent.Future getMissionProfileAsync(final GetMissionProfileRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMissionProfileRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMissionProfileResult call() throws Exception { GetMissionProfileResult result = null; try { result = executeGetMissionProfile(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getSatelliteAsync(GetSatelliteRequest request) { return getSatelliteAsync(request, null); } @Override public java.util.concurrent.Future getSatelliteAsync(final GetSatelliteRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetSatelliteRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetSatelliteResult call() throws Exception { GetSatelliteResult result = null; try { result = executeGetSatellite(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listConfigsAsync(ListConfigsRequest request) { return listConfigsAsync(request, null); } @Override public java.util.concurrent.Future listConfigsAsync(final ListConfigsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListConfigsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListConfigsResult call() throws Exception { ListConfigsResult result = null; try { result = executeListConfigs(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listContactsAsync(ListContactsRequest request) { return listContactsAsync(request, null); } @Override public java.util.concurrent.Future listContactsAsync(final ListContactsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListContactsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListContactsResult call() throws Exception { ListContactsResult result = null; try { result = executeListContacts(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listDataflowEndpointGroupsAsync(ListDataflowEndpointGroupsRequest request) { return listDataflowEndpointGroupsAsync(request, null); } @Override public java.util.concurrent.Future listDataflowEndpointGroupsAsync(final ListDataflowEndpointGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDataflowEndpointGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDataflowEndpointGroupsResult call() throws Exception { ListDataflowEndpointGroupsResult result = null; try { result = executeListDataflowEndpointGroups(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listEphemeridesAsync(ListEphemeridesRequest request) { return listEphemeridesAsync(request, null); } @Override public java.util.concurrent.Future listEphemeridesAsync(final ListEphemeridesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListEphemeridesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListEphemeridesResult call() throws Exception { ListEphemeridesResult result = null; try { result = executeListEphemerides(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listGroundStationsAsync(ListGroundStationsRequest request) { return listGroundStationsAsync(request, null); } @Override public java.util.concurrent.Future listGroundStationsAsync(final ListGroundStationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListGroundStationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListGroundStationsResult call() throws Exception { ListGroundStationsResult result = null; try { result = executeListGroundStations(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listMissionProfilesAsync(ListMissionProfilesRequest request) { return listMissionProfilesAsync(request, null); } @Override public java.util.concurrent.Future listMissionProfilesAsync(final ListMissionProfilesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMissionProfilesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMissionProfilesResult call() throws Exception { ListMissionProfilesResult result = null; try { result = executeListMissionProfiles(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listSatellitesAsync(ListSatellitesRequest request) { return listSatellitesAsync(request, null); } @Override public java.util.concurrent.Future listSatellitesAsync(final ListSatellitesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListSatellitesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListSatellitesResult call() throws Exception { ListSatellitesResult result = null; try { result = executeListSatellites(finalRequest); } catch (Exception 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 registerAgentAsync(RegisterAgentRequest request) { return registerAgentAsync(request, null); } @Override public java.util.concurrent.Future registerAgentAsync(final RegisterAgentRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterAgentRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterAgentResult call() throws Exception { RegisterAgentResult result = null; try { result = executeRegisterAgent(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future reserveContactAsync(ReserveContactRequest request) { return reserveContactAsync(request, null); } @Override public java.util.concurrent.Future reserveContactAsync(final ReserveContactRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ReserveContactRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ReserveContactResult call() throws Exception { ReserveContactResult result = null; try { result = executeReserveContact(finalRequest); } catch (Exception 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 updateAgentStatusAsync(UpdateAgentStatusRequest request) { return updateAgentStatusAsync(request, null); } @Override public java.util.concurrent.Future updateAgentStatusAsync(final UpdateAgentStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAgentStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAgentStatusResult call() throws Exception { UpdateAgentStatusResult result = null; try { result = executeUpdateAgentStatus(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateConfigAsync(UpdateConfigRequest request) { return updateConfigAsync(request, null); } @Override public java.util.concurrent.Future updateConfigAsync(final UpdateConfigRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateConfigRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateConfigResult call() throws Exception { UpdateConfigResult result = null; try { result = executeUpdateConfig(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateEphemerisAsync(UpdateEphemerisRequest request) { return updateEphemerisAsync(request, null); } @Override public java.util.concurrent.Future updateEphemerisAsync(final UpdateEphemerisRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateEphemerisRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateEphemerisResult call() throws Exception { UpdateEphemerisResult result = null; try { result = executeUpdateEphemeris(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateMissionProfileAsync(UpdateMissionProfileRequest request) { return updateMissionProfileAsync(request, null); } @Override public java.util.concurrent.Future updateMissionProfileAsync(final UpdateMissionProfileRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMissionProfileRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMissionProfileResult call() throws Exception { UpdateMissionProfileResult result = null; try { result = executeUpdateMissionProfile(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 - 2024 Weber Informatics LLC | Privacy Policy