@Override
    public java.util.concurrent.Future<GetRegistryScanningConfigurationResult> getRegistryScanningConfigurationAsync(
            final GetRegistryScanningConfigurationRequest request,
            final com.amazonaws.handlers.AsyncHandler<GetRegistryScanningConfigurationRequest, GetRegistryScanningConfigurationResult> asyncHandler) {
        final GetRegistryScanningConfigurationRequest finalRequest = beforeClientExecution(request);

        return executorService.submit(new java.util.concurrent.Callable<GetRegistryScanningConfigurationResult>() {
            @Override
            public GetRegistryScanningConfigurationResult call() throws Exception {
                GetRegistryScanningConfigurationResult result = null;

                try {
                    result = executeGetRegistryScanningConfiguration(finalRequest);
                } catch (Exception ex) {
                    if (asyncHandler != null) {
                        asyncHandler.onError(ex);
                    }
                    throw ex;
                }

                if (asyncHandler != null) {
                    asyncHandler.onSuccess(finalRequest, result);
                }
                return result;
            }
        });
    }
Returns the executor service used by this client to execute async requests.

@return The executor service used by this client to execute async requests.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/AmazonECRAsyncClient.java