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

com.amazonaws.services.chimesdkidentity.AmazonChimeSDKIdentityAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Chime SDK Identity module holds the client classes that are used for communicating with Amazon Chime SDK Identity 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.chimesdkidentity;

import javax.annotation.Generated;

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

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing Amazon Chime SDK Identity 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.
 * 

*

* The Amazon Chime SDK Identity APIs in this section allow software developers to create and manage unique instances of * their messaging applications. These APIs provide the overarching framework for creating and sending messages. For * more information about the identity APIs, refer to Amazon * Chime SDK identity. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonChimeSDKIdentityAsyncClient extends AmazonChimeSDKIdentityClient implements AmazonChimeSDKIdentityAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AmazonChimeSDKIdentityAsyncClientBuilder asyncBuilder() { return AmazonChimeSDKIdentityAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Chime SDK Identity using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. */ AmazonChimeSDKIdentityAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on Amazon Chime SDK Identity using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AmazonChimeSDKIdentityAsyncClient(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 createAppInstanceAsync(CreateAppInstanceRequest request) { return createAppInstanceAsync(request, null); } @Override public java.util.concurrent.Future createAppInstanceAsync(final CreateAppInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppInstanceResult call() throws Exception { CreateAppInstanceResult result = null; try { result = executeCreateAppInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createAppInstanceAdminAsync(CreateAppInstanceAdminRequest request) { return createAppInstanceAdminAsync(request, null); } @Override public java.util.concurrent.Future createAppInstanceAdminAsync(final CreateAppInstanceAdminRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppInstanceAdminRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppInstanceAdminResult call() throws Exception { CreateAppInstanceAdminResult result = null; try { result = executeCreateAppInstanceAdmin(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createAppInstanceBotAsync(CreateAppInstanceBotRequest request) { return createAppInstanceBotAsync(request, null); } @Override public java.util.concurrent.Future createAppInstanceBotAsync(final CreateAppInstanceBotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppInstanceBotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppInstanceBotResult call() throws Exception { CreateAppInstanceBotResult result = null; try { result = executeCreateAppInstanceBot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future createAppInstanceUserAsync(CreateAppInstanceUserRequest request) { return createAppInstanceUserAsync(request, null); } @Override public java.util.concurrent.Future createAppInstanceUserAsync(final CreateAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAppInstanceUserResult call() throws Exception { CreateAppInstanceUserResult result = null; try { result = executeCreateAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteAppInstanceAsync(DeleteAppInstanceRequest request) { return deleteAppInstanceAsync(request, null); } @Override public java.util.concurrent.Future deleteAppInstanceAsync(final DeleteAppInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInstanceResult call() throws Exception { DeleteAppInstanceResult result = null; try { result = executeDeleteAppInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteAppInstanceAdminAsync(DeleteAppInstanceAdminRequest request) { return deleteAppInstanceAdminAsync(request, null); } @Override public java.util.concurrent.Future deleteAppInstanceAdminAsync(final DeleteAppInstanceAdminRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInstanceAdminRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInstanceAdminResult call() throws Exception { DeleteAppInstanceAdminResult result = null; try { result = executeDeleteAppInstanceAdmin(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteAppInstanceBotAsync(DeleteAppInstanceBotRequest request) { return deleteAppInstanceBotAsync(request, null); } @Override public java.util.concurrent.Future deleteAppInstanceBotAsync(final DeleteAppInstanceBotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInstanceBotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInstanceBotResult call() throws Exception { DeleteAppInstanceBotResult result = null; try { result = executeDeleteAppInstanceBot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deleteAppInstanceUserAsync(DeleteAppInstanceUserRequest request) { return deleteAppInstanceUserAsync(request, null); } @Override public java.util.concurrent.Future deleteAppInstanceUserAsync(final DeleteAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAppInstanceUserResult call() throws Exception { DeleteAppInstanceUserResult result = null; try { result = executeDeleteAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( DeregisterAppInstanceUserEndpointRequest request) { return deregisterAppInstanceUserEndpointAsync(request, null); } @Override public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( final DeregisterAppInstanceUserEndpointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeregisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeregisterAppInstanceUserEndpointResult call() throws Exception { DeregisterAppInstanceUserEndpointResult result = null; try { result = executeDeregisterAppInstanceUserEndpoint(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeAppInstanceAsync(DescribeAppInstanceRequest request) { return describeAppInstanceAsync(request, null); } @Override public java.util.concurrent.Future describeAppInstanceAsync(final DescribeAppInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppInstanceResult call() throws Exception { DescribeAppInstanceResult result = null; try { result = executeDescribeAppInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeAppInstanceAdminAsync(DescribeAppInstanceAdminRequest request) { return describeAppInstanceAdminAsync(request, null); } @Override public java.util.concurrent.Future describeAppInstanceAdminAsync(final DescribeAppInstanceAdminRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppInstanceAdminRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppInstanceAdminResult call() throws Exception { DescribeAppInstanceAdminResult result = null; try { result = executeDescribeAppInstanceAdmin(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeAppInstanceBotAsync(DescribeAppInstanceBotRequest request) { return describeAppInstanceBotAsync(request, null); } @Override public java.util.concurrent.Future describeAppInstanceBotAsync(final DescribeAppInstanceBotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppInstanceBotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppInstanceBotResult call() throws Exception { DescribeAppInstanceBotResult result = null; try { result = executeDescribeAppInstanceBot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeAppInstanceUserAsync(DescribeAppInstanceUserRequest request) { return describeAppInstanceUserAsync(request, null); } @Override public java.util.concurrent.Future describeAppInstanceUserAsync(final DescribeAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppInstanceUserResult call() throws Exception { DescribeAppInstanceUserResult result = null; try { result = executeDescribeAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( DescribeAppInstanceUserEndpointRequest request) { return describeAppInstanceUserEndpointAsync(request, null); } @Override public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( final DescribeAppInstanceUserEndpointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeAppInstanceUserEndpointResult call() throws Exception { DescribeAppInstanceUserEndpointResult result = null; try { result = executeDescribeAppInstanceUserEndpoint(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { return getAppInstanceRetentionSettingsAsync(request, null); } @Override public java.util.concurrent.Future getAppInstanceRetentionSettingsAsync( final GetAppInstanceRetentionSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAppInstanceRetentionSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAppInstanceRetentionSettingsResult call() throws Exception { GetAppInstanceRetentionSettingsResult result = null; try { result = executeGetAppInstanceRetentionSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAppInstanceAdminsAsync(ListAppInstanceAdminsRequest request) { return listAppInstanceAdminsAsync(request, null); } @Override public java.util.concurrent.Future listAppInstanceAdminsAsync(final ListAppInstanceAdminsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInstanceAdminsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInstanceAdminsResult call() throws Exception { ListAppInstanceAdminsResult result = null; try { result = executeListAppInstanceAdmins(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAppInstanceBotsAsync(ListAppInstanceBotsRequest request) { return listAppInstanceBotsAsync(request, null); } @Override public java.util.concurrent.Future listAppInstanceBotsAsync(final ListAppInstanceBotsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInstanceBotsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInstanceBotsResult call() throws Exception { ListAppInstanceBotsResult result = null; try { result = executeListAppInstanceBots(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request) { return listAppInstanceUserEndpointsAsync(request, null); } @Override public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(final ListAppInstanceUserEndpointsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInstanceUserEndpointsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInstanceUserEndpointsResult call() throws Exception { ListAppInstanceUserEndpointsResult result = null; try { result = executeListAppInstanceUserEndpoints(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { return listAppInstanceUsersAsync(request, null); } @Override public java.util.concurrent.Future listAppInstanceUsersAsync(final ListAppInstanceUsersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInstanceUsersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInstanceUsersResult call() throws Exception { ListAppInstanceUsersResult result = null; try { result = executeListAppInstanceUsers(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future listAppInstancesAsync(ListAppInstancesRequest request) { return listAppInstancesAsync(request, null); } @Override public java.util.concurrent.Future listAppInstancesAsync(final ListAppInstancesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAppInstancesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAppInstancesResult call() throws Exception { ListAppInstancesResult result = null; try { result = executeListAppInstances(finalRequest); } catch (Exception 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 putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { return putAppInstanceRetentionSettingsAsync(request, null); } @Override public java.util.concurrent.Future putAppInstanceRetentionSettingsAsync( final PutAppInstanceRetentionSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAppInstanceRetentionSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAppInstanceRetentionSettingsResult call() throws Exception { PutAppInstanceRetentionSettingsResult result = null; try { result = executePutAppInstanceRetentionSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future putAppInstanceUserExpirationSettingsAsync( PutAppInstanceUserExpirationSettingsRequest request) { return putAppInstanceUserExpirationSettingsAsync(request, null); } @Override public java.util.concurrent.Future putAppInstanceUserExpirationSettingsAsync( final PutAppInstanceUserExpirationSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAppInstanceUserExpirationSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAppInstanceUserExpirationSettingsResult call() throws Exception { PutAppInstanceUserExpirationSettingsResult result = null; try { result = executePutAppInstanceUserExpirationSettings(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( RegisterAppInstanceUserEndpointRequest request) { return registerAppInstanceUserEndpointAsync(request, null); } @Override public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( final RegisterAppInstanceUserEndpointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterAppInstanceUserEndpointResult call() throws Exception { RegisterAppInstanceUserEndpointResult result = null; try { result = executeRegisterAppInstanceUserEndpoint(finalRequest); } catch (Exception 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 updateAppInstanceAsync(UpdateAppInstanceRequest request) { return updateAppInstanceAsync(request, null); } @Override public java.util.concurrent.Future updateAppInstanceAsync(final UpdateAppInstanceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppInstanceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppInstanceResult call() throws Exception { UpdateAppInstanceResult result = null; try { result = executeUpdateAppInstance(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAppInstanceBotAsync(UpdateAppInstanceBotRequest request) { return updateAppInstanceBotAsync(request, null); } @Override public java.util.concurrent.Future updateAppInstanceBotAsync(final UpdateAppInstanceBotRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppInstanceBotRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppInstanceBotResult call() throws Exception { UpdateAppInstanceBotResult result = null; try { result = executeUpdateAppInstanceBot(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAppInstanceUserAsync(UpdateAppInstanceUserRequest request) { return updateAppInstanceUserAsync(request, null); } @Override public java.util.concurrent.Future updateAppInstanceUserAsync(final UpdateAppInstanceUserRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppInstanceUserRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppInstanceUserResult call() throws Exception { UpdateAppInstanceUserResult result = null; try { result = executeUpdateAppInstanceUser(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } @Override public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request) { return updateAppInstanceUserEndpointAsync(request, null); } @Override public java.util.concurrent.Future updateAppInstanceUserEndpointAsync( final UpdateAppInstanceUserEndpointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAppInstanceUserEndpointResult call() throws Exception { UpdateAppInstanceUserEndpointResult result = null; try { result = executeUpdateAppInstanceUserEndpoint(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