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

com.amazonaws.services.s3control.AWSS3ControlAsyncClient Maven / Gradle / Ivy

Go to download

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

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

import javax.annotation.Generated;

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

import java.util.concurrent.ExecutorService;

/**
 * Client for accessing AWS S3 Control 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.
 * 

*

* Amazon Web Services S3 Control provides access to Amazon S3 control plane actions. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSS3ControlAsyncClient extends AWSS3ControlClient implements AWSS3ControlAsync { private static final int DEFAULT_THREAD_POOL_SIZE = 50; private final java.util.concurrent.ExecutorService executorService; public static AWSS3ControlAsyncClientBuilder asyncBuilder() { return AWSS3ControlAsyncClientBuilder.standard(); } /** * Constructs a new asynchronous client to invoke service methods on AWS S3 Control using the specified parameters. * * @param asyncClientParams * Object providing client parameters. */ AWSS3ControlAsyncClient(AwsAsyncClientParams asyncClientParams) { this(asyncClientParams, false); } /** * Constructs a new asynchronous client to invoke service methods on AWS S3 Control using the specified parameters. * * @param asyncClientParams * Object providing client parameters. * @param endpointDiscoveryEnabled * true will enable endpoint discovery if the service supports it. */ AWSS3ControlAsyncClient(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 createAccessPointAsync(CreateAccessPointRequest request) { return createAccessPointAsync(request, null); } @Override public java.util.concurrent.Future createAccessPointAsync(final CreateAccessPointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAccessPointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAccessPointResult call() throws Exception { CreateAccessPointResult result = null; try { result = executeCreateAccessPoint(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 createAccessPointForObjectLambdaAsync( CreateAccessPointForObjectLambdaRequest request) { return createAccessPointForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future createAccessPointForObjectLambdaAsync( final CreateAccessPointForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateAccessPointForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateAccessPointForObjectLambdaResult call() throws Exception { CreateAccessPointForObjectLambdaResult result = null; try { result = executeCreateAccessPointForObjectLambda(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 createBucketAsync(CreateBucketRequest request) { return createBucketAsync(request, null); } @Override public java.util.concurrent.Future createBucketAsync(final CreateBucketRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateBucketRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateBucketResult call() throws Exception { CreateBucketResult result = null; try { result = executeCreateBucket(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 createJobAsync(CreateJobRequest request) { return createJobAsync(request, null); } @Override public java.util.concurrent.Future createJobAsync(final CreateJobRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateJobRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateJobResult call() throws Exception { CreateJobResult result = null; try { result = executeCreateJob(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 createMultiRegionAccessPointAsync(CreateMultiRegionAccessPointRequest request) { return createMultiRegionAccessPointAsync(request, null); } @Override public java.util.concurrent.Future createMultiRegionAccessPointAsync(final CreateMultiRegionAccessPointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final CreateMultiRegionAccessPointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public CreateMultiRegionAccessPointResult call() throws Exception { CreateMultiRegionAccessPointResult result = null; try { result = executeCreateMultiRegionAccessPoint(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 deleteAccessPointAsync(DeleteAccessPointRequest request) { return deleteAccessPointAsync(request, null); } @Override public java.util.concurrent.Future deleteAccessPointAsync(final DeleteAccessPointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAccessPointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAccessPointResult call() throws Exception { DeleteAccessPointResult result = null; try { result = executeDeleteAccessPoint(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 deleteAccessPointForObjectLambdaAsync( DeleteAccessPointForObjectLambdaRequest request) { return deleteAccessPointForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future deleteAccessPointForObjectLambdaAsync( final DeleteAccessPointForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAccessPointForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAccessPointForObjectLambdaResult call() throws Exception { DeleteAccessPointForObjectLambdaResult result = null; try { result = executeDeleteAccessPointForObjectLambda(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 deleteAccessPointPolicyAsync(DeleteAccessPointPolicyRequest request) { return deleteAccessPointPolicyAsync(request, null); } @Override public java.util.concurrent.Future deleteAccessPointPolicyAsync(final DeleteAccessPointPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAccessPointPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAccessPointPolicyResult call() throws Exception { DeleteAccessPointPolicyResult result = null; try { result = executeDeleteAccessPointPolicy(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 deleteAccessPointPolicyForObjectLambdaAsync( DeleteAccessPointPolicyForObjectLambdaRequest request) { return deleteAccessPointPolicyForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future deleteAccessPointPolicyForObjectLambdaAsync( final DeleteAccessPointPolicyForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteAccessPointPolicyForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteAccessPointPolicyForObjectLambdaResult call() throws Exception { DeleteAccessPointPolicyForObjectLambdaResult result = null; try { result = executeDeleteAccessPointPolicyForObjectLambda(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 deleteBucketAsync(DeleteBucketRequest request) { return deleteBucketAsync(request, null); } @Override public java.util.concurrent.Future deleteBucketAsync(final DeleteBucketRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteBucketRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteBucketResult call() throws Exception { DeleteBucketResult result = null; try { result = executeDeleteBucket(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 deleteBucketLifecycleConfigurationAsync( DeleteBucketLifecycleConfigurationRequest request) { return deleteBucketLifecycleConfigurationAsync(request, null); } @Override public java.util.concurrent.Future deleteBucketLifecycleConfigurationAsync( final DeleteBucketLifecycleConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteBucketLifecycleConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteBucketLifecycleConfigurationResult call() throws Exception { DeleteBucketLifecycleConfigurationResult result = null; try { result = executeDeleteBucketLifecycleConfiguration(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 deleteBucketPolicyAsync(DeleteBucketPolicyRequest request) { return deleteBucketPolicyAsync(request, null); } @Override public java.util.concurrent.Future deleteBucketPolicyAsync(final DeleteBucketPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteBucketPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteBucketPolicyResult call() throws Exception { DeleteBucketPolicyResult result = null; try { result = executeDeleteBucketPolicy(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 deleteBucketTaggingAsync(DeleteBucketTaggingRequest request) { return deleteBucketTaggingAsync(request, null); } @Override public java.util.concurrent.Future deleteBucketTaggingAsync(final DeleteBucketTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteBucketTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteBucketTaggingResult call() throws Exception { DeleteBucketTaggingResult result = null; try { result = executeDeleteBucketTagging(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 deleteJobTaggingAsync(DeleteJobTaggingRequest request) { return deleteJobTaggingAsync(request, null); } @Override public java.util.concurrent.Future deleteJobTaggingAsync(final DeleteJobTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteJobTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteJobTaggingResult call() throws Exception { DeleteJobTaggingResult result = null; try { result = executeDeleteJobTagging(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 deleteMultiRegionAccessPointAsync(DeleteMultiRegionAccessPointRequest request) { return deleteMultiRegionAccessPointAsync(request, null); } @Override public java.util.concurrent.Future deleteMultiRegionAccessPointAsync(final DeleteMultiRegionAccessPointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteMultiRegionAccessPointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteMultiRegionAccessPointResult call() throws Exception { DeleteMultiRegionAccessPointResult result = null; try { result = executeDeleteMultiRegionAccessPoint(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 deletePublicAccessBlockAsync(DeletePublicAccessBlockRequest request) { return deletePublicAccessBlockAsync(request, null); } @Override public java.util.concurrent.Future deletePublicAccessBlockAsync(final DeletePublicAccessBlockRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeletePublicAccessBlockRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeletePublicAccessBlockResult call() throws Exception { DeletePublicAccessBlockResult result = null; try { result = executeDeletePublicAccessBlock(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 deleteStorageLensConfigurationAsync(DeleteStorageLensConfigurationRequest request) { return deleteStorageLensConfigurationAsync(request, null); } @Override public java.util.concurrent.Future deleteStorageLensConfigurationAsync( final DeleteStorageLensConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteStorageLensConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteStorageLensConfigurationResult call() throws Exception { DeleteStorageLensConfigurationResult result = null; try { result = executeDeleteStorageLensConfiguration(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 deleteStorageLensConfigurationTaggingAsync( DeleteStorageLensConfigurationTaggingRequest request) { return deleteStorageLensConfigurationTaggingAsync(request, null); } @Override public java.util.concurrent.Future deleteStorageLensConfigurationTaggingAsync( final DeleteStorageLensConfigurationTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DeleteStorageLensConfigurationTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DeleteStorageLensConfigurationTaggingResult call() throws Exception { DeleteStorageLensConfigurationTaggingResult result = null; try { result = executeDeleteStorageLensConfigurationTagging(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 describeJobAsync(DescribeJobRequest request) { return describeJobAsync(request, null); } @Override public java.util.concurrent.Future describeJobAsync(final DescribeJobRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeJobRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeJobResult call() throws Exception { DescribeJobResult result = null; try { result = executeDescribeJob(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 describeMultiRegionAccessPointOperationAsync( DescribeMultiRegionAccessPointOperationRequest request) { return describeMultiRegionAccessPointOperationAsync(request, null); } @Override public java.util.concurrent.Future describeMultiRegionAccessPointOperationAsync( final DescribeMultiRegionAccessPointOperationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final DescribeMultiRegionAccessPointOperationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public DescribeMultiRegionAccessPointOperationResult call() throws Exception { DescribeMultiRegionAccessPointOperationResult result = null; try { result = executeDescribeMultiRegionAccessPointOperation(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 getAccessPointAsync(GetAccessPointRequest request) { return getAccessPointAsync(request, null); } @Override public java.util.concurrent.Future getAccessPointAsync(final GetAccessPointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccessPointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccessPointResult call() throws Exception { GetAccessPointResult result = null; try { result = executeGetAccessPoint(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 getAccessPointConfigurationForObjectLambdaAsync( GetAccessPointConfigurationForObjectLambdaRequest request) { return getAccessPointConfigurationForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future getAccessPointConfigurationForObjectLambdaAsync( final GetAccessPointConfigurationForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccessPointConfigurationForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccessPointConfigurationForObjectLambdaResult call() throws Exception { GetAccessPointConfigurationForObjectLambdaResult result = null; try { result = executeGetAccessPointConfigurationForObjectLambda(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 getAccessPointForObjectLambdaAsync(GetAccessPointForObjectLambdaRequest request) { return getAccessPointForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future getAccessPointForObjectLambdaAsync( final GetAccessPointForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccessPointForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccessPointForObjectLambdaResult call() throws Exception { GetAccessPointForObjectLambdaResult result = null; try { result = executeGetAccessPointForObjectLambda(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 getAccessPointPolicyAsync(GetAccessPointPolicyRequest request) { return getAccessPointPolicyAsync(request, null); } @Override public java.util.concurrent.Future getAccessPointPolicyAsync(final GetAccessPointPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccessPointPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccessPointPolicyResult call() throws Exception { GetAccessPointPolicyResult result = null; try { result = executeGetAccessPointPolicy(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 getAccessPointPolicyForObjectLambdaAsync( GetAccessPointPolicyForObjectLambdaRequest request) { return getAccessPointPolicyForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future getAccessPointPolicyForObjectLambdaAsync( final GetAccessPointPolicyForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccessPointPolicyForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccessPointPolicyForObjectLambdaResult call() throws Exception { GetAccessPointPolicyForObjectLambdaResult result = null; try { result = executeGetAccessPointPolicyForObjectLambda(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 getAccessPointPolicyStatusAsync(GetAccessPointPolicyStatusRequest request) { return getAccessPointPolicyStatusAsync(request, null); } @Override public java.util.concurrent.Future getAccessPointPolicyStatusAsync(final GetAccessPointPolicyStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccessPointPolicyStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccessPointPolicyStatusResult call() throws Exception { GetAccessPointPolicyStatusResult result = null; try { result = executeGetAccessPointPolicyStatus(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 getAccessPointPolicyStatusForObjectLambdaAsync( GetAccessPointPolicyStatusForObjectLambdaRequest request) { return getAccessPointPolicyStatusForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future getAccessPointPolicyStatusForObjectLambdaAsync( final GetAccessPointPolicyStatusForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetAccessPointPolicyStatusForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetAccessPointPolicyStatusForObjectLambdaResult call() throws Exception { GetAccessPointPolicyStatusForObjectLambdaResult result = null; try { result = executeGetAccessPointPolicyStatusForObjectLambda(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 getBucketAsync(GetBucketRequest request) { return getBucketAsync(request, null); } @Override public java.util.concurrent.Future getBucketAsync(final GetBucketRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetBucketRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetBucketResult call() throws Exception { GetBucketResult result = null; try { result = executeGetBucket(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 getBucketLifecycleConfigurationAsync( GetBucketLifecycleConfigurationRequest request) { return getBucketLifecycleConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getBucketLifecycleConfigurationAsync( final GetBucketLifecycleConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetBucketLifecycleConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetBucketLifecycleConfigurationResult call() throws Exception { GetBucketLifecycleConfigurationResult result = null; try { result = executeGetBucketLifecycleConfiguration(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 getBucketPolicyAsync(GetBucketPolicyRequest request) { return getBucketPolicyAsync(request, null); } @Override public java.util.concurrent.Future getBucketPolicyAsync(final GetBucketPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetBucketPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetBucketPolicyResult call() throws Exception { GetBucketPolicyResult result = null; try { result = executeGetBucketPolicy(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 getBucketTaggingAsync(GetBucketTaggingRequest request) { return getBucketTaggingAsync(request, null); } @Override public java.util.concurrent.Future getBucketTaggingAsync(final GetBucketTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetBucketTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetBucketTaggingResult call() throws Exception { GetBucketTaggingResult result = null; try { result = executeGetBucketTagging(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 getJobTaggingAsync(GetJobTaggingRequest request) { return getJobTaggingAsync(request, null); } @Override public java.util.concurrent.Future getJobTaggingAsync(final GetJobTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetJobTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetJobTaggingResult call() throws Exception { GetJobTaggingResult result = null; try { result = executeGetJobTagging(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 getMultiRegionAccessPointAsync(GetMultiRegionAccessPointRequest request) { return getMultiRegionAccessPointAsync(request, null); } @Override public java.util.concurrent.Future getMultiRegionAccessPointAsync(final GetMultiRegionAccessPointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMultiRegionAccessPointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMultiRegionAccessPointResult call() throws Exception { GetMultiRegionAccessPointResult result = null; try { result = executeGetMultiRegionAccessPoint(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 getMultiRegionAccessPointPolicyAsync( GetMultiRegionAccessPointPolicyRequest request) { return getMultiRegionAccessPointPolicyAsync(request, null); } @Override public java.util.concurrent.Future getMultiRegionAccessPointPolicyAsync( final GetMultiRegionAccessPointPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMultiRegionAccessPointPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMultiRegionAccessPointPolicyResult call() throws Exception { GetMultiRegionAccessPointPolicyResult result = null; try { result = executeGetMultiRegionAccessPointPolicy(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 getMultiRegionAccessPointPolicyStatusAsync( GetMultiRegionAccessPointPolicyStatusRequest request) { return getMultiRegionAccessPointPolicyStatusAsync(request, null); } @Override public java.util.concurrent.Future getMultiRegionAccessPointPolicyStatusAsync( final GetMultiRegionAccessPointPolicyStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetMultiRegionAccessPointPolicyStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetMultiRegionAccessPointPolicyStatusResult call() throws Exception { GetMultiRegionAccessPointPolicyStatusResult result = null; try { result = executeGetMultiRegionAccessPointPolicyStatus(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 getPublicAccessBlockAsync(GetPublicAccessBlockRequest request) { return getPublicAccessBlockAsync(request, null); } @Override public java.util.concurrent.Future getPublicAccessBlockAsync(final GetPublicAccessBlockRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetPublicAccessBlockRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetPublicAccessBlockResult call() throws Exception { GetPublicAccessBlockResult result = null; try { result = executeGetPublicAccessBlock(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 getStorageLensConfigurationAsync(GetStorageLensConfigurationRequest request) { return getStorageLensConfigurationAsync(request, null); } @Override public java.util.concurrent.Future getStorageLensConfigurationAsync(final GetStorageLensConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetStorageLensConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetStorageLensConfigurationResult call() throws Exception { GetStorageLensConfigurationResult result = null; try { result = executeGetStorageLensConfiguration(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 getStorageLensConfigurationTaggingAsync( GetStorageLensConfigurationTaggingRequest request) { return getStorageLensConfigurationTaggingAsync(request, null); } @Override public java.util.concurrent.Future getStorageLensConfigurationTaggingAsync( final GetStorageLensConfigurationTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final GetStorageLensConfigurationTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public GetStorageLensConfigurationTaggingResult call() throws Exception { GetStorageLensConfigurationTaggingResult result = null; try { result = executeGetStorageLensConfigurationTagging(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 listAccessPointsAsync(ListAccessPointsRequest request) { return listAccessPointsAsync(request, null); } @Override public java.util.concurrent.Future listAccessPointsAsync(final ListAccessPointsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAccessPointsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAccessPointsResult call() throws Exception { ListAccessPointsResult result = null; try { result = executeListAccessPoints(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 listAccessPointsForObjectLambdaAsync( ListAccessPointsForObjectLambdaRequest request) { return listAccessPointsForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future listAccessPointsForObjectLambdaAsync( final ListAccessPointsForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListAccessPointsForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListAccessPointsForObjectLambdaResult call() throws Exception { ListAccessPointsForObjectLambdaResult result = null; try { result = executeListAccessPointsForObjectLambda(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 listJobsAsync(ListJobsRequest request) { return listJobsAsync(request, null); } @Override public java.util.concurrent.Future listJobsAsync(final ListJobsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListJobsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListJobsResult call() throws Exception { ListJobsResult result = null; try { result = executeListJobs(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 listMultiRegionAccessPointsAsync(ListMultiRegionAccessPointsRequest request) { return listMultiRegionAccessPointsAsync(request, null); } @Override public java.util.concurrent.Future listMultiRegionAccessPointsAsync(final ListMultiRegionAccessPointsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListMultiRegionAccessPointsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListMultiRegionAccessPointsResult call() throws Exception { ListMultiRegionAccessPointsResult result = null; try { result = executeListMultiRegionAccessPoints(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 listRegionalBucketsAsync(ListRegionalBucketsRequest request) { return listRegionalBucketsAsync(request, null); } @Override public java.util.concurrent.Future listRegionalBucketsAsync(final ListRegionalBucketsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListRegionalBucketsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListRegionalBucketsResult call() throws Exception { ListRegionalBucketsResult result = null; try { result = executeListRegionalBuckets(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 listStorageLensConfigurationsAsync(ListStorageLensConfigurationsRequest request) { return listStorageLensConfigurationsAsync(request, null); } @Override public java.util.concurrent.Future listStorageLensConfigurationsAsync( final ListStorageLensConfigurationsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListStorageLensConfigurationsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListStorageLensConfigurationsResult call() throws Exception { ListStorageLensConfigurationsResult result = null; try { result = executeListStorageLensConfigurations(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 putAccessPointConfigurationForObjectLambdaAsync( PutAccessPointConfigurationForObjectLambdaRequest request) { return putAccessPointConfigurationForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future putAccessPointConfigurationForObjectLambdaAsync( final PutAccessPointConfigurationForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAccessPointConfigurationForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAccessPointConfigurationForObjectLambdaResult call() throws Exception { PutAccessPointConfigurationForObjectLambdaResult result = null; try { result = executePutAccessPointConfigurationForObjectLambda(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 putAccessPointPolicyAsync(PutAccessPointPolicyRequest request) { return putAccessPointPolicyAsync(request, null); } @Override public java.util.concurrent.Future putAccessPointPolicyAsync(final PutAccessPointPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAccessPointPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAccessPointPolicyResult call() throws Exception { PutAccessPointPolicyResult result = null; try { result = executePutAccessPointPolicy(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 putAccessPointPolicyForObjectLambdaAsync( PutAccessPointPolicyForObjectLambdaRequest request) { return putAccessPointPolicyForObjectLambdaAsync(request, null); } @Override public java.util.concurrent.Future putAccessPointPolicyForObjectLambdaAsync( final PutAccessPointPolicyForObjectLambdaRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutAccessPointPolicyForObjectLambdaRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutAccessPointPolicyForObjectLambdaResult call() throws Exception { PutAccessPointPolicyForObjectLambdaResult result = null; try { result = executePutAccessPointPolicyForObjectLambda(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 putBucketLifecycleConfigurationAsync( PutBucketLifecycleConfigurationRequest request) { return putBucketLifecycleConfigurationAsync(request, null); } @Override public java.util.concurrent.Future putBucketLifecycleConfigurationAsync( final PutBucketLifecycleConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutBucketLifecycleConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutBucketLifecycleConfigurationResult call() throws Exception { PutBucketLifecycleConfigurationResult result = null; try { result = executePutBucketLifecycleConfiguration(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 putBucketPolicyAsync(PutBucketPolicyRequest request) { return putBucketPolicyAsync(request, null); } @Override public java.util.concurrent.Future putBucketPolicyAsync(final PutBucketPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutBucketPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutBucketPolicyResult call() throws Exception { PutBucketPolicyResult result = null; try { result = executePutBucketPolicy(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 putBucketTaggingAsync(PutBucketTaggingRequest request) { return putBucketTaggingAsync(request, null); } @Override public java.util.concurrent.Future putBucketTaggingAsync(final PutBucketTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutBucketTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutBucketTaggingResult call() throws Exception { PutBucketTaggingResult result = null; try { result = executePutBucketTagging(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 putJobTaggingAsync(PutJobTaggingRequest request) { return putJobTaggingAsync(request, null); } @Override public java.util.concurrent.Future putJobTaggingAsync(final PutJobTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutJobTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutJobTaggingResult call() throws Exception { PutJobTaggingResult result = null; try { result = executePutJobTagging(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 putMultiRegionAccessPointPolicyAsync( PutMultiRegionAccessPointPolicyRequest request) { return putMultiRegionAccessPointPolicyAsync(request, null); } @Override public java.util.concurrent.Future putMultiRegionAccessPointPolicyAsync( final PutMultiRegionAccessPointPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutMultiRegionAccessPointPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutMultiRegionAccessPointPolicyResult call() throws Exception { PutMultiRegionAccessPointPolicyResult result = null; try { result = executePutMultiRegionAccessPointPolicy(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 putPublicAccessBlockAsync(PutPublicAccessBlockRequest request) { return putPublicAccessBlockAsync(request, null); } @Override public java.util.concurrent.Future putPublicAccessBlockAsync(final PutPublicAccessBlockRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutPublicAccessBlockRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutPublicAccessBlockResult call() throws Exception { PutPublicAccessBlockResult result = null; try { result = executePutPublicAccessBlock(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 putStorageLensConfigurationAsync(PutStorageLensConfigurationRequest request) { return putStorageLensConfigurationAsync(request, null); } @Override public java.util.concurrent.Future putStorageLensConfigurationAsync(final PutStorageLensConfigurationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutStorageLensConfigurationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutStorageLensConfigurationResult call() throws Exception { PutStorageLensConfigurationResult result = null; try { result = executePutStorageLensConfiguration(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 putStorageLensConfigurationTaggingAsync( PutStorageLensConfigurationTaggingRequest request) { return putStorageLensConfigurationTaggingAsync(request, null); } @Override public java.util.concurrent.Future putStorageLensConfigurationTaggingAsync( final PutStorageLensConfigurationTaggingRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final PutStorageLensConfigurationTaggingRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public PutStorageLensConfigurationTaggingResult call() throws Exception { PutStorageLensConfigurationTaggingResult result = null; try { result = executePutStorageLensConfigurationTagging(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 updateJobPriorityAsync(UpdateJobPriorityRequest request) { return updateJobPriorityAsync(request, null); } @Override public java.util.concurrent.Future updateJobPriorityAsync(final UpdateJobPriorityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateJobPriorityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateJobPriorityResult call() throws Exception { UpdateJobPriorityResult result = null; try { result = executeUpdateJobPriority(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 updateJobStatusAsync(UpdateJobStatusRequest request) { return updateJobStatusAsync(request, null); } @Override public java.util.concurrent.Future updateJobStatusAsync(final UpdateJobStatusRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateJobStatusRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateJobStatusResult call() throws Exception { UpdateJobStatusResult result = null; try { result = executeUpdateJobStatus(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