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

com.amazonaws.services.lakeformation.AWSLakeFormationAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Lake Formation module holds the client classes that are used for communicating with AWS Lake Formation 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.lakeformation;

import javax.annotation.Generated;

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

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing AWS Lake Formation 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.
 * 

* Lake Formation *

* Defines the public endpoint for the Lake Formation service. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSLakeFormationAsyncClient extends AWSLakeFormationClient implements AWSLakeFormationAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AWSLakeFormationAsyncClientBuilder asyncBuilder() { return AWSLakeFormationAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on AWS Lake Formation using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSLakeFormationAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on AWS Lake Formation using the specified * parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSLakeFormationAsyncClient(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 addLFTagsToResourceAsync(AddLFTagsToResourceRequest request) { return addLFTagsToResourceAsync(request, null); } @Override public java.util.concurrent.Future addLFTagsToResourceAsync(final AddLFTagsToResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AddLFTagsToResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AddLFTagsToResourceResult call() throws Exception { AddLFTagsToResourceResult result = null; try { result = executeAddLFTagsToResource(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 assumeDecoratedRoleWithSAMLAsync(AssumeDecoratedRoleWithSAMLRequest request) { return assumeDecoratedRoleWithSAMLAsync(request, null); } @Override public java.util.concurrent.Future assumeDecoratedRoleWithSAMLAsync(final AssumeDecoratedRoleWithSAMLRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final AssumeDecoratedRoleWithSAMLRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public AssumeDecoratedRoleWithSAMLResult call() throws Exception { AssumeDecoratedRoleWithSAMLResult result = null; try { result = executeAssumeDecoratedRoleWithSAML(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 batchGrantPermissionsAsync(BatchGrantPermissionsRequest request) { return batchGrantPermissionsAsync(request, null); } @Override public java.util.concurrent.Future batchGrantPermissionsAsync(final BatchGrantPermissionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchGrantPermissionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchGrantPermissionsResult call() throws Exception { BatchGrantPermissionsResult result = null; try { result = executeBatchGrantPermissions(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 batchRevokePermissionsAsync(BatchRevokePermissionsRequest request) { return batchRevokePermissionsAsync(request, null); } @Override public java.util.concurrent.Future batchRevokePermissionsAsync(final BatchRevokePermissionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final BatchRevokePermissionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public BatchRevokePermissionsResult call() throws Exception { BatchRevokePermissionsResult result = null; try { result = executeBatchRevokePermissions(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 cancelTransactionAsync(CancelTransactionRequest request) { return cancelTransactionAsync(request, null); } @Override public java.util.concurrent.Future cancelTransactionAsync(final CancelTransactionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CancelTransactionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CancelTransactionResult call() throws Exception { CancelTransactionResult result = null; try { result = executeCancelTransaction(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 commitTransactionAsync(CommitTransactionRequest request) { return commitTransactionAsync(request, null); } @Override public java.util.concurrent.Future commitTransactionAsync(final CommitTransactionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CommitTransactionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CommitTransactionResult call() throws Exception { CommitTransactionResult result = null; try { result = executeCommitTransaction(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 createDataCellsFilterAsync(CreateDataCellsFilterRequest request) { return createDataCellsFilterAsync(request, null); } @Override public java.util.concurrent.Future createDataCellsFilterAsync(final CreateDataCellsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateDataCellsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateDataCellsFilterResult call() throws Exception { CreateDataCellsFilterResult result = null; try { result = executeCreateDataCellsFilter(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 createLFTagAsync(CreateLFTagRequest request) { return createLFTagAsync(request, null); } @Override public java.util.concurrent.Future createLFTagAsync(final CreateLFTagRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateLFTagRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateLFTagResult call() throws Exception { CreateLFTagResult result = null; try { result = executeCreateLFTag(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 createLakeFormationIdentityCenterConfigurationAsync( CreateLakeFormationIdentityCenterConfigurationRequest request) { return createLakeFormationIdentityCenterConfigurationAsync(request, null); } @Override public java.util.concurrent.Future createLakeFormationIdentityCenterConfigurationAsync( final CreateLakeFormationIdentityCenterConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateLakeFormationIdentityCenterConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateLakeFormationIdentityCenterConfigurationResult call() throws Exception { CreateLakeFormationIdentityCenterConfigurationResult result = null; try { result = executeCreateLakeFormationIdentityCenterConfiguration(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 createLakeFormationOptInAsync(CreateLakeFormationOptInRequest request) { return createLakeFormationOptInAsync(request, null); } @Override public java.util.concurrent.Future createLakeFormationOptInAsync(final CreateLakeFormationOptInRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateLakeFormationOptInRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateLakeFormationOptInResult call() throws Exception { CreateLakeFormationOptInResult result = null; try { result = executeCreateLakeFormationOptIn(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 deleteDataCellsFilterAsync(DeleteDataCellsFilterRequest request) { return deleteDataCellsFilterAsync(request, null); } @Override public java.util.concurrent.Future deleteDataCellsFilterAsync(final DeleteDataCellsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteDataCellsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteDataCellsFilterResult call() throws Exception { DeleteDataCellsFilterResult result = null; try { result = executeDeleteDataCellsFilter(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 deleteLFTagAsync(DeleteLFTagRequest request) { return deleteLFTagAsync(request, null); } @Override public java.util.concurrent.Future deleteLFTagAsync(final DeleteLFTagRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteLFTagRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteLFTagResult call() throws Exception { DeleteLFTagResult result = null; try { result = executeDeleteLFTag(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 deleteLakeFormationIdentityCenterConfigurationAsync( DeleteLakeFormationIdentityCenterConfigurationRequest request) { return deleteLakeFormationIdentityCenterConfigurationAsync(request, null); } @Override public java.util.concurrent.Future deleteLakeFormationIdentityCenterConfigurationAsync( final DeleteLakeFormationIdentityCenterConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteLakeFormationIdentityCenterConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteLakeFormationIdentityCenterConfigurationResult call() throws Exception { DeleteLakeFormationIdentityCenterConfigurationResult result = null; try { result = executeDeleteLakeFormationIdentityCenterConfiguration(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 deleteLakeFormationOptInAsync(DeleteLakeFormationOptInRequest request) { return deleteLakeFormationOptInAsync(request, null); } @Override public java.util.concurrent.Future deleteLakeFormationOptInAsync(final DeleteLakeFormationOptInRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteLakeFormationOptInRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteLakeFormationOptInResult call() throws Exception { DeleteLakeFormationOptInResult result = null; try { result = executeDeleteLakeFormationOptIn(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 deleteObjectsOnCancelAsync(DeleteObjectsOnCancelRequest request) { return deleteObjectsOnCancelAsync(request, null); } @Override public java.util.concurrent.Future deleteObjectsOnCancelAsync(final DeleteObjectsOnCancelRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteObjectsOnCancelRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteObjectsOnCancelResult call() throws Exception { DeleteObjectsOnCancelResult result = null; try { result = executeDeleteObjectsOnCancel(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 deregisterResourceAsync(DeregisterResourceRequest request) { return deregisterResourceAsync(request, null); } @Override public java.util.concurrent.Future deregisterResourceAsync(final DeregisterResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeregisterResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeregisterResourceResult call() throws Exception { DeregisterResourceResult result = null; try { result = executeDeregisterResource(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 describeLakeFormationIdentityCenterConfigurationAsync( DescribeLakeFormationIdentityCenterConfigurationRequest request) { return describeLakeFormationIdentityCenterConfigurationAsync(request, null); } @Override public java.util.concurrent.Future describeLakeFormationIdentityCenterConfigurationAsync( final DescribeLakeFormationIdentityCenterConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeLakeFormationIdentityCenterConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeLakeFormationIdentityCenterConfigurationResult call() throws Exception { DescribeLakeFormationIdentityCenterConfigurationResult result = null; try { result = executeDescribeLakeFormationIdentityCenterConfiguration(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 describeResourceAsync(DescribeResourceRequest request) { return describeResourceAsync(request, null); } @Override public java.util.concurrent.Future describeResourceAsync(final DescribeResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeResourceResult call() throws Exception { DescribeResourceResult result = null; try { result = executeDescribeResource(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 describeTransactionAsync(DescribeTransactionRequest request) { return describeTransactionAsync(request, null); } @Override public java.util.concurrent.Future describeTransactionAsync(final DescribeTransactionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeTransactionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeTransactionResult call() throws Exception { DescribeTransactionResult result = null; try { result = executeDescribeTransaction(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 extendTransactionAsync(ExtendTransactionRequest request) { return extendTransactionAsync(request, null); } @Override public java.util.concurrent.Future extendTransactionAsync(final ExtendTransactionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ExtendTransactionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ExtendTransactionResult call() throws Exception { ExtendTransactionResult result = null; try { result = executeExtendTransaction(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 getDataCellsFilterAsync(GetDataCellsFilterRequest request) { return getDataCellsFilterAsync(request, null); } @Override public java.util.concurrent.Future getDataCellsFilterAsync(final GetDataCellsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDataCellsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDataCellsFilterResult call() throws Exception { GetDataCellsFilterResult result = null; try { result = executeGetDataCellsFilter(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 getDataLakePrincipalAsync(GetDataLakePrincipalRequest request) { return getDataLakePrincipalAsync(request, null); } @Override public java.util.concurrent.Future getDataLakePrincipalAsync(final GetDataLakePrincipalRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDataLakePrincipalRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDataLakePrincipalResult call() throws Exception { GetDataLakePrincipalResult result = null; try { result = executeGetDataLakePrincipal(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 getDataLakeSettingsAsync(GetDataLakeSettingsRequest request) { return getDataLakeSettingsAsync(request, null); } @Override public java.util.concurrent.Future getDataLakeSettingsAsync(final GetDataLakeSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetDataLakeSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetDataLakeSettingsResult call() throws Exception { GetDataLakeSettingsResult result = null; try { result = executeGetDataLakeSettings(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 getEffectivePermissionsForPathAsync(GetEffectivePermissionsForPathRequest request) { return getEffectivePermissionsForPathAsync(request, null); } @Override public java.util.concurrent.Future getEffectivePermissionsForPathAsync( final GetEffectivePermissionsForPathRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetEffectivePermissionsForPathRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetEffectivePermissionsForPathResult call() throws Exception { GetEffectivePermissionsForPathResult result = null; try { result = executeGetEffectivePermissionsForPath(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 getLFTagAsync(GetLFTagRequest request) { return getLFTagAsync(request, null); } @Override public java.util.concurrent.Future getLFTagAsync(final GetLFTagRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetLFTagRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetLFTagResult call() throws Exception { GetLFTagResult result = null; try { result = executeGetLFTag(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 getQueryStateAsync(GetQueryStateRequest request) { return getQueryStateAsync(request, null); } @Override public java.util.concurrent.Future getQueryStateAsync(final GetQueryStateRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetQueryStateRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetQueryStateResult call() throws Exception { GetQueryStateResult result = null; try { result = executeGetQueryState(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 getQueryStatisticsAsync(GetQueryStatisticsRequest request) { return getQueryStatisticsAsync(request, null); } @Override public java.util.concurrent.Future getQueryStatisticsAsync(final GetQueryStatisticsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetQueryStatisticsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetQueryStatisticsResult call() throws Exception { GetQueryStatisticsResult result = null; try { result = executeGetQueryStatistics(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 getResourceLFTagsAsync(GetResourceLFTagsRequest request) { return getResourceLFTagsAsync(request, null); } @Override public java.util.concurrent.Future getResourceLFTagsAsync(final GetResourceLFTagsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetResourceLFTagsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetResourceLFTagsResult call() throws Exception { GetResourceLFTagsResult result = null; try { result = executeGetResourceLFTags(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 getTableObjectsAsync(GetTableObjectsRequest request) { return getTableObjectsAsync(request, null); } @Override public java.util.concurrent.Future getTableObjectsAsync(final GetTableObjectsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetTableObjectsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetTableObjectsResult call() throws Exception { GetTableObjectsResult result = null; try { result = executeGetTableObjects(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 getTemporaryGluePartitionCredentialsAsync( GetTemporaryGluePartitionCredentialsRequest request) { return getTemporaryGluePartitionCredentialsAsync(request, null); } @Override public java.util.concurrent.Future getTemporaryGluePartitionCredentialsAsync( final GetTemporaryGluePartitionCredentialsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetTemporaryGluePartitionCredentialsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetTemporaryGluePartitionCredentialsResult call() throws Exception { GetTemporaryGluePartitionCredentialsResult result = null; try { result = executeGetTemporaryGluePartitionCredentials(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 getTemporaryGlueTableCredentialsAsync( GetTemporaryGlueTableCredentialsRequest request) { return getTemporaryGlueTableCredentialsAsync(request, null); } @Override public java.util.concurrent.Future getTemporaryGlueTableCredentialsAsync( final GetTemporaryGlueTableCredentialsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetTemporaryGlueTableCredentialsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetTemporaryGlueTableCredentialsResult call() throws Exception { GetTemporaryGlueTableCredentialsResult result = null; try { result = executeGetTemporaryGlueTableCredentials(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 getWorkUnitResultsAsync(GetWorkUnitResultsRequest request) { return getWorkUnitResultsAsync(request, null); } @Override public java.util.concurrent.Future getWorkUnitResultsAsync(final GetWorkUnitResultsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetWorkUnitResultsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetWorkUnitResultsResult call() throws Exception { GetWorkUnitResultsResult result = null; try { result = executeGetWorkUnitResults(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 getWorkUnitsAsync(GetWorkUnitsRequest request) { return getWorkUnitsAsync(request, null); } @Override public java.util.concurrent.Future getWorkUnitsAsync(final GetWorkUnitsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetWorkUnitsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetWorkUnitsResult call() throws Exception { GetWorkUnitsResult result = null; try { result = executeGetWorkUnits(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 grantPermissionsAsync(GrantPermissionsRequest request) { return grantPermissionsAsync(request, null); } @Override public java.util.concurrent.Future grantPermissionsAsync(final GrantPermissionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GrantPermissionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GrantPermissionsResult call() throws Exception { GrantPermissionsResult result = null; try { result = executeGrantPermissions(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 listDataCellsFilterAsync(ListDataCellsFilterRequest request) { return listDataCellsFilterAsync(request, null); } @Override public java.util.concurrent.Future listDataCellsFilterAsync(final ListDataCellsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListDataCellsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListDataCellsFilterResult call() throws Exception { ListDataCellsFilterResult result = null; try { result = executeListDataCellsFilter(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 listLFTagsAsync(ListLFTagsRequest request) { return listLFTagsAsync(request, null); } @Override public java.util.concurrent.Future listLFTagsAsync(final ListLFTagsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListLFTagsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListLFTagsResult call() throws Exception { ListLFTagsResult result = null; try { result = executeListLFTags(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 listLakeFormationOptInsAsync(ListLakeFormationOptInsRequest request) { return listLakeFormationOptInsAsync(request, null); } @Override public java.util.concurrent.Future listLakeFormationOptInsAsync(final ListLakeFormationOptInsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListLakeFormationOptInsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListLakeFormationOptInsResult call() throws Exception { ListLakeFormationOptInsResult result = null; try { result = executeListLakeFormationOptIns(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 listPermissionsAsync(ListPermissionsRequest request) { return listPermissionsAsync(request, null); } @Override public java.util.concurrent.Future listPermissionsAsync(final ListPermissionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListPermissionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListPermissionsResult call() throws Exception { ListPermissionsResult result = null; try { result = executeListPermissions(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 listResourcesAsync(ListResourcesRequest request) { return listResourcesAsync(request, null); } @Override public java.util.concurrent.Future listResourcesAsync(final ListResourcesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListResourcesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListResourcesResult call() throws Exception { ListResourcesResult result = null; try { result = executeListResources(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 listTableStorageOptimizersAsync(ListTableStorageOptimizersRequest request) { return listTableStorageOptimizersAsync(request, null); } @Override public java.util.concurrent.Future listTableStorageOptimizersAsync(final ListTableStorageOptimizersRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTableStorageOptimizersRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTableStorageOptimizersResult call() throws Exception { ListTableStorageOptimizersResult result = null; try { result = executeListTableStorageOptimizers(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 listTransactionsAsync(ListTransactionsRequest request) { return listTransactionsAsync(request, null); } @Override public java.util.concurrent.Future listTransactionsAsync(final ListTransactionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTransactionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTransactionsResult call() throws Exception { ListTransactionsResult result = null; try { result = executeListTransactions(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 putDataLakeSettingsAsync(PutDataLakeSettingsRequest request) { return putDataLakeSettingsAsync(request, null); } @Override public java.util.concurrent.Future putDataLakeSettingsAsync(final PutDataLakeSettingsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutDataLakeSettingsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutDataLakeSettingsResult call() throws Exception { PutDataLakeSettingsResult result = null; try { result = executePutDataLakeSettings(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 registerResourceAsync(RegisterResourceRequest request) { return registerResourceAsync(request, null); } @Override public java.util.concurrent.Future registerResourceAsync(final RegisterResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RegisterResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RegisterResourceResult call() throws Exception { RegisterResourceResult result = null; try { result = executeRegisterResource(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 removeLFTagsFromResourceAsync(RemoveLFTagsFromResourceRequest request) { return removeLFTagsFromResourceAsync(request, null); } @Override public java.util.concurrent.Future removeLFTagsFromResourceAsync(final RemoveLFTagsFromResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveLFTagsFromResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RemoveLFTagsFromResourceResult call() throws Exception { RemoveLFTagsFromResourceResult result = null; try { result = executeRemoveLFTagsFromResource(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 revokePermissionsAsync(RevokePermissionsRequest request) { return revokePermissionsAsync(request, null); } @Override public java.util.concurrent.Future revokePermissionsAsync(final RevokePermissionsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RevokePermissionsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RevokePermissionsResult call() throws Exception { RevokePermissionsResult result = null; try { result = executeRevokePermissions(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 searchDatabasesByLFTagsAsync(SearchDatabasesByLFTagsRequest request) { return searchDatabasesByLFTagsAsync(request, null); } @Override public java.util.concurrent.Future searchDatabasesByLFTagsAsync(final SearchDatabasesByLFTagsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchDatabasesByLFTagsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchDatabasesByLFTagsResult call() throws Exception { SearchDatabasesByLFTagsResult result = null; try { result = executeSearchDatabasesByLFTags(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 searchTablesByLFTagsAsync(SearchTablesByLFTagsRequest request) { return searchTablesByLFTagsAsync(request, null); } @Override public java.util.concurrent.Future searchTablesByLFTagsAsync(final SearchTablesByLFTagsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SearchTablesByLFTagsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SearchTablesByLFTagsResult call() throws Exception { SearchTablesByLFTagsResult result = null; try { result = executeSearchTablesByLFTags(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 startQueryPlanningAsync(StartQueryPlanningRequest request) { return startQueryPlanningAsync(request, null); } @Override public java.util.concurrent.Future startQueryPlanningAsync(final StartQueryPlanningRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartQueryPlanningRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartQueryPlanningResult call() throws Exception { StartQueryPlanningResult result = null; try { result = executeStartQueryPlanning(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 startTransactionAsync(StartTransactionRequest request) { return startTransactionAsync(request, null); } @Override public java.util.concurrent.Future startTransactionAsync(final StartTransactionRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartTransactionRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartTransactionResult call() throws Exception { StartTransactionResult result = null; try { result = executeStartTransaction(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 updateDataCellsFilterAsync(UpdateDataCellsFilterRequest request) { return updateDataCellsFilterAsync(request, null); } @Override public java.util.concurrent.Future updateDataCellsFilterAsync(final UpdateDataCellsFilterRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateDataCellsFilterRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateDataCellsFilterResult call() throws Exception { UpdateDataCellsFilterResult result = null; try { result = executeUpdateDataCellsFilter(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 updateLFTagAsync(UpdateLFTagRequest request) { return updateLFTagAsync(request, null); } @Override public java.util.concurrent.Future updateLFTagAsync(final UpdateLFTagRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateLFTagRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateLFTagResult call() throws Exception { UpdateLFTagResult result = null; try { result = executeUpdateLFTag(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 updateLakeFormationIdentityCenterConfigurationAsync( UpdateLakeFormationIdentityCenterConfigurationRequest request) { return updateLakeFormationIdentityCenterConfigurationAsync(request, null); } @Override public java.util.concurrent.Future updateLakeFormationIdentityCenterConfigurationAsync( final UpdateLakeFormationIdentityCenterConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateLakeFormationIdentityCenterConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateLakeFormationIdentityCenterConfigurationResult call() throws Exception { UpdateLakeFormationIdentityCenterConfigurationResult result = null; try { result = executeUpdateLakeFormationIdentityCenterConfiguration(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 updateResourceAsync(UpdateResourceRequest request) { return updateResourceAsync(request, null); } @Override public java.util.concurrent.Future updateResourceAsync(final UpdateResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateResourceResult call() throws Exception { UpdateResourceResult result = null; try { result = executeUpdateResource(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 updateTableObjectsAsync(UpdateTableObjectsRequest request) { return updateTableObjectsAsync(request, null); } @Override public java.util.concurrent.Future updateTableObjectsAsync(final UpdateTableObjectsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateTableObjectsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateTableObjectsResult call() throws Exception { UpdateTableObjectsResult result = null; try { result = executeUpdateTableObjects(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 updateTableStorageOptimizerAsync(UpdateTableStorageOptimizerRequest request) { return updateTableStorageOptimizerAsync(request, null); } @Override public java.util.concurrent.Future updateTableStorageOptimizerAsync(final UpdateTableStorageOptimizerRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateTableStorageOptimizerRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateTableStorageOptimizerResult call() throws Exception { UpdateTableStorageOptimizerResult result = null; try { result = executeUpdateTableStorageOptimizer(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