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

com.amazonaws.services.chatbot.AWSChatbotAsyncClient Maven / Gradle / Ivy

Go to download

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

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

import javax.annotation.Generated;

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

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing AWS Chatbot asynchronously. Each asynchronous method will return a Java Future object
 * representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
 * notification when an asynchronous operation completes.
 * 

* AWS Chatbot API */ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSChatbotAsyncClient extends AWSChatbotClient implements AWSChatbotAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AWSChatbotAsyncClientBuilder asyncBuilder() { return AWSChatbotAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on AWS Chatbot using the specified parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSChatbotAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on AWS Chatbot using the specified parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSChatbotAsyncClient(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 createChimeWebhookConfigurationAsync( CreateChimeWebhookConfigurationRequest request) { return createChimeWebhookConfigurationAsync(request, null); } @Override public java.util.concurrent.Future createChimeWebhookConfigurationAsync( final CreateChimeWebhookConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateChimeWebhookConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateChimeWebhookConfigurationResult call() throws Exception { CreateChimeWebhookConfigurationResult result = null; try { result = executeCreateChimeWebhookConfiguration(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 createMicrosoftTeamsChannelConfigurationAsync( CreateMicrosoftTeamsChannelConfigurationRequest request) { return createMicrosoftTeamsChannelConfigurationAsync(request, null); } @Override public java.util.concurrent.Future createMicrosoftTeamsChannelConfigurationAsync( final CreateMicrosoftTeamsChannelConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMicrosoftTeamsChannelConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMicrosoftTeamsChannelConfigurationResult call() throws Exception { CreateMicrosoftTeamsChannelConfigurationResult result = null; try { result = executeCreateMicrosoftTeamsChannelConfiguration(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 createSlackChannelConfigurationAsync( CreateSlackChannelConfigurationRequest request) { return createSlackChannelConfigurationAsync(request, null); } @Override public java.util.concurrent.Future createSlackChannelConfigurationAsync( final CreateSlackChannelConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateSlackChannelConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateSlackChannelConfigurationResult call() throws Exception { CreateSlackChannelConfigurationResult result = null; try { result = executeCreateSlackChannelConfiguration(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 deleteChimeWebhookConfigurationAsync( DeleteChimeWebhookConfigurationRequest request) { return deleteChimeWebhookConfigurationAsync(request, null); } @Override public java.util.concurrent.Future deleteChimeWebhookConfigurationAsync( final DeleteChimeWebhookConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteChimeWebhookConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteChimeWebhookConfigurationResult call() throws Exception { DeleteChimeWebhookConfigurationResult result = null; try { result = executeDeleteChimeWebhookConfiguration(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 deleteMicrosoftTeamsChannelConfigurationAsync( DeleteMicrosoftTeamsChannelConfigurationRequest request) { return deleteMicrosoftTeamsChannelConfigurationAsync(request, null); } @Override public java.util.concurrent.Future deleteMicrosoftTeamsChannelConfigurationAsync( final DeleteMicrosoftTeamsChannelConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMicrosoftTeamsChannelConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMicrosoftTeamsChannelConfigurationResult call() throws Exception { DeleteMicrosoftTeamsChannelConfigurationResult result = null; try { result = executeDeleteMicrosoftTeamsChannelConfiguration(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 deleteMicrosoftTeamsConfiguredTeamAsync( DeleteMicrosoftTeamsConfiguredTeamRequest request) { return deleteMicrosoftTeamsConfiguredTeamAsync(request, null); } @Override public java.util.concurrent.Future deleteMicrosoftTeamsConfiguredTeamAsync( final DeleteMicrosoftTeamsConfiguredTeamRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMicrosoftTeamsConfiguredTeamRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMicrosoftTeamsConfiguredTeamResult call() throws Exception { DeleteMicrosoftTeamsConfiguredTeamResult result = null; try { result = executeDeleteMicrosoftTeamsConfiguredTeam(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 deleteMicrosoftTeamsUserIdentityAsync( DeleteMicrosoftTeamsUserIdentityRequest request) { return deleteMicrosoftTeamsUserIdentityAsync(request, null); } @Override public java.util.concurrent.Future deleteMicrosoftTeamsUserIdentityAsync( final DeleteMicrosoftTeamsUserIdentityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMicrosoftTeamsUserIdentityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMicrosoftTeamsUserIdentityResult call() throws Exception { DeleteMicrosoftTeamsUserIdentityResult result = null; try { result = executeDeleteMicrosoftTeamsUserIdentity(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 deleteSlackChannelConfigurationAsync( DeleteSlackChannelConfigurationRequest request) { return deleteSlackChannelConfigurationAsync(request, null); } @Override public java.util.concurrent.Future deleteSlackChannelConfigurationAsync( final DeleteSlackChannelConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSlackChannelConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSlackChannelConfigurationResult call() throws Exception { DeleteSlackChannelConfigurationResult result = null; try { result = executeDeleteSlackChannelConfiguration(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 deleteSlackUserIdentityAsync(DeleteSlackUserIdentityRequest request) { return deleteSlackUserIdentityAsync(request, null); } @Override public java.util.concurrent.Future deleteSlackUserIdentityAsync(final DeleteSlackUserIdentityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSlackUserIdentityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSlackUserIdentityResult call() throws Exception { DeleteSlackUserIdentityResult result = null; try { result = executeDeleteSlackUserIdentity(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 deleteSlackWorkspaceAuthorizationAsync( DeleteSlackWorkspaceAuthorizationRequest request) { return deleteSlackWorkspaceAuthorizationAsync(request, null); } @Override public java.util.concurrent.Future deleteSlackWorkspaceAuthorizationAsync( final DeleteSlackWorkspaceAuthorizationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteSlackWorkspaceAuthorizationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteSlackWorkspaceAuthorizationResult call() throws Exception { DeleteSlackWorkspaceAuthorizationResult result = null; try { result = executeDeleteSlackWorkspaceAuthorization(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 describeChimeWebhookConfigurationsAsync( DescribeChimeWebhookConfigurationsRequest request) { return describeChimeWebhookConfigurationsAsync(request, null); } @Override public java.util.concurrent.Future describeChimeWebhookConfigurationsAsync( final DescribeChimeWebhookConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeChimeWebhookConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeChimeWebhookConfigurationsResult call() throws Exception { DescribeChimeWebhookConfigurationsResult result = null; try { result = executeDescribeChimeWebhookConfigurations(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 describeSlackChannelConfigurationsAsync( DescribeSlackChannelConfigurationsRequest request) { return describeSlackChannelConfigurationsAsync(request, null); } @Override public java.util.concurrent.Future describeSlackChannelConfigurationsAsync( final DescribeSlackChannelConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeSlackChannelConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeSlackChannelConfigurationsResult call() throws Exception { DescribeSlackChannelConfigurationsResult result = null; try { result = executeDescribeSlackChannelConfigurations(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 describeSlackUserIdentitiesAsync(DescribeSlackUserIdentitiesRequest request) { return describeSlackUserIdentitiesAsync(request, null); } @Override public java.util.concurrent.Future describeSlackUserIdentitiesAsync(final DescribeSlackUserIdentitiesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeSlackUserIdentitiesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeSlackUserIdentitiesResult call() throws Exception { DescribeSlackUserIdentitiesResult result = null; try { result = executeDescribeSlackUserIdentities(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 describeSlackWorkspacesAsync(DescribeSlackWorkspacesRequest request) { return describeSlackWorkspacesAsync(request, null); } @Override public java.util.concurrent.Future describeSlackWorkspacesAsync(final DescribeSlackWorkspacesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeSlackWorkspacesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeSlackWorkspacesResult call() throws Exception { DescribeSlackWorkspacesResult result = null; try { result = executeDescribeSlackWorkspaces(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 getAccountPreferencesAsync(GetAccountPreferencesRequest request) { return getAccountPreferencesAsync(request, null); } @Override public java.util.concurrent.Future getAccountPreferencesAsync(final GetAccountPreferencesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccountPreferencesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccountPreferencesResult call() throws Exception { GetAccountPreferencesResult result = null; try { result = executeGetAccountPreferences(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 getMicrosoftTeamsChannelConfigurationAsync( GetMicrosoftTeamsChannelConfigurationRequest request) { return getMicrosoftTeamsChannelConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getMicrosoftTeamsChannelConfigurationAsync( final GetMicrosoftTeamsChannelConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMicrosoftTeamsChannelConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMicrosoftTeamsChannelConfigurationResult call() throws Exception { GetMicrosoftTeamsChannelConfigurationResult result = null; try { result = executeGetMicrosoftTeamsChannelConfiguration(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 listMicrosoftTeamsChannelConfigurationsAsync( ListMicrosoftTeamsChannelConfigurationsRequest request) { return listMicrosoftTeamsChannelConfigurationsAsync(request, null); } @Override public java.util.concurrent.Future listMicrosoftTeamsChannelConfigurationsAsync( final ListMicrosoftTeamsChannelConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMicrosoftTeamsChannelConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMicrosoftTeamsChannelConfigurationsResult call() throws Exception { ListMicrosoftTeamsChannelConfigurationsResult result = null; try { result = executeListMicrosoftTeamsChannelConfigurations(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 listMicrosoftTeamsConfiguredTeamsAsync( ListMicrosoftTeamsConfiguredTeamsRequest request) { return listMicrosoftTeamsConfiguredTeamsAsync(request, null); } @Override public java.util.concurrent.Future listMicrosoftTeamsConfiguredTeamsAsync( final ListMicrosoftTeamsConfiguredTeamsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMicrosoftTeamsConfiguredTeamsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMicrosoftTeamsConfiguredTeamsResult call() throws Exception { ListMicrosoftTeamsConfiguredTeamsResult result = null; try { result = executeListMicrosoftTeamsConfiguredTeams(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 listMicrosoftTeamsUserIdentitiesAsync( ListMicrosoftTeamsUserIdentitiesRequest request) { return listMicrosoftTeamsUserIdentitiesAsync(request, null); } @Override public java.util.concurrent.Future listMicrosoftTeamsUserIdentitiesAsync( final ListMicrosoftTeamsUserIdentitiesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMicrosoftTeamsUserIdentitiesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMicrosoftTeamsUserIdentitiesResult call() throws Exception { ListMicrosoftTeamsUserIdentitiesResult result = null; try { result = executeListMicrosoftTeamsUserIdentities(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 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 updateAccountPreferencesAsync(UpdateAccountPreferencesRequest request) { return updateAccountPreferencesAsync(request, null); } @Override public java.util.concurrent.Future updateAccountPreferencesAsync(final UpdateAccountPreferencesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAccountPreferencesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAccountPreferencesResult call() throws Exception { UpdateAccountPreferencesResult result = null; try { result = executeUpdateAccountPreferences(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 updateChimeWebhookConfigurationAsync( UpdateChimeWebhookConfigurationRequest request) { return updateChimeWebhookConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateChimeWebhookConfigurationAsync( final UpdateChimeWebhookConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateChimeWebhookConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateChimeWebhookConfigurationResult call() throws Exception { UpdateChimeWebhookConfigurationResult result = null; try { result = executeUpdateChimeWebhookConfiguration(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 updateMicrosoftTeamsChannelConfigurationAsync( UpdateMicrosoftTeamsChannelConfigurationRequest request) { return updateMicrosoftTeamsChannelConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateMicrosoftTeamsChannelConfigurationAsync( final UpdateMicrosoftTeamsChannelConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMicrosoftTeamsChannelConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMicrosoftTeamsChannelConfigurationResult call() throws Exception { UpdateMicrosoftTeamsChannelConfigurationResult result = null; try { result = executeUpdateMicrosoftTeamsChannelConfiguration(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 updateSlackChannelConfigurationAsync( UpdateSlackChannelConfigurationRequest request) { return updateSlackChannelConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateSlackChannelConfigurationAsync( final UpdateSlackChannelConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSlackChannelConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSlackChannelConfigurationResult call() throws Exception { UpdateSlackChannelConfigurationResult result = null; try { result = executeUpdateSlackChannelConfiguration(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