com.amazonaws.services.finspace.AWSfinspaceAsyncClient Maven / Gradle / Ivy
/*
* 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.finspace;
import javax.annotation.Generated;
import com.amazonaws.services.finspace.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing finspace asynchronously. Each asynchronous method will return a Java Future object representing
* the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive notification when
* an asynchronous operation completes.
*
*
* The FinSpace management service provides the APIs for managing FinSpace environments.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSfinspaceAsyncClient extends AWSfinspaceClient implements AWSfinspaceAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AWSfinspaceAsyncClientBuilder asyncBuilder() {
return AWSfinspaceAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on finspace using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSfinspaceAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on finspace using the specified parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSfinspaceAsyncClient(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
@Deprecated
public java.util.concurrent.Future createEnvironmentAsync(CreateEnvironmentRequest request) {
return createEnvironmentAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future createEnvironmentAsync(final CreateEnvironmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateEnvironmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateEnvironmentResult call() throws Exception {
CreateEnvironmentResult result = null;
try {
result = executeCreateEnvironment(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 createKxChangesetAsync(CreateKxChangesetRequest request) {
return createKxChangesetAsync(request, null);
}
@Override
public java.util.concurrent.Future createKxChangesetAsync(final CreateKxChangesetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateKxChangesetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateKxChangesetResult call() throws Exception {
CreateKxChangesetResult result = null;
try {
result = executeCreateKxChangeset(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 createKxClusterAsync(CreateKxClusterRequest request) {
return createKxClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future createKxClusterAsync(final CreateKxClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateKxClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateKxClusterResult call() throws Exception {
CreateKxClusterResult result = null;
try {
result = executeCreateKxCluster(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 createKxDatabaseAsync(CreateKxDatabaseRequest request) {
return createKxDatabaseAsync(request, null);
}
@Override
public java.util.concurrent.Future createKxDatabaseAsync(final CreateKxDatabaseRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateKxDatabaseRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateKxDatabaseResult call() throws Exception {
CreateKxDatabaseResult result = null;
try {
result = executeCreateKxDatabase(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 createKxDataviewAsync(CreateKxDataviewRequest request) {
return createKxDataviewAsync(request, null);
}
@Override
public java.util.concurrent.Future createKxDataviewAsync(final CreateKxDataviewRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateKxDataviewRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateKxDataviewResult call() throws Exception {
CreateKxDataviewResult result = null;
try {
result = executeCreateKxDataview(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 createKxEnvironmentAsync(CreateKxEnvironmentRequest request) {
return createKxEnvironmentAsync(request, null);
}
@Override
public java.util.concurrent.Future createKxEnvironmentAsync(final CreateKxEnvironmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateKxEnvironmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateKxEnvironmentResult call() throws Exception {
CreateKxEnvironmentResult result = null;
try {
result = executeCreateKxEnvironment(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 createKxScalingGroupAsync(CreateKxScalingGroupRequest request) {
return createKxScalingGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createKxScalingGroupAsync(final CreateKxScalingGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateKxScalingGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateKxScalingGroupResult call() throws Exception {
CreateKxScalingGroupResult result = null;
try {
result = executeCreateKxScalingGroup(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 createKxUserAsync(CreateKxUserRequest request) {
return createKxUserAsync(request, null);
}
@Override
public java.util.concurrent.Future createKxUserAsync(final CreateKxUserRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateKxUserRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateKxUserResult call() throws Exception {
CreateKxUserResult result = null;
try {
result = executeCreateKxUser(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 createKxVolumeAsync(CreateKxVolumeRequest request) {
return createKxVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future createKxVolumeAsync(final CreateKxVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateKxVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateKxVolumeResult call() throws Exception {
CreateKxVolumeResult result = null;
try {
result = executeCreateKxVolume(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future deleteEnvironmentAsync(DeleteEnvironmentRequest request) {
return deleteEnvironmentAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future deleteEnvironmentAsync(final DeleteEnvironmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteEnvironmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteEnvironmentResult call() throws Exception {
DeleteEnvironmentResult result = null;
try {
result = executeDeleteEnvironment(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 deleteKxClusterAsync(DeleteKxClusterRequest request) {
return deleteKxClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteKxClusterAsync(final DeleteKxClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteKxClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteKxClusterResult call() throws Exception {
DeleteKxClusterResult result = null;
try {
result = executeDeleteKxCluster(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 deleteKxClusterNodeAsync(DeleteKxClusterNodeRequest request) {
return deleteKxClusterNodeAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteKxClusterNodeAsync(final DeleteKxClusterNodeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteKxClusterNodeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteKxClusterNodeResult call() throws Exception {
DeleteKxClusterNodeResult result = null;
try {
result = executeDeleteKxClusterNode(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 deleteKxDatabaseAsync(DeleteKxDatabaseRequest request) {
return deleteKxDatabaseAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteKxDatabaseAsync(final DeleteKxDatabaseRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteKxDatabaseRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteKxDatabaseResult call() throws Exception {
DeleteKxDatabaseResult result = null;
try {
result = executeDeleteKxDatabase(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 deleteKxDataviewAsync(DeleteKxDataviewRequest request) {
return deleteKxDataviewAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteKxDataviewAsync(final DeleteKxDataviewRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteKxDataviewRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteKxDataviewResult call() throws Exception {
DeleteKxDataviewResult result = null;
try {
result = executeDeleteKxDataview(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 deleteKxEnvironmentAsync(DeleteKxEnvironmentRequest request) {
return deleteKxEnvironmentAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteKxEnvironmentAsync(final DeleteKxEnvironmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteKxEnvironmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteKxEnvironmentResult call() throws Exception {
DeleteKxEnvironmentResult result = null;
try {
result = executeDeleteKxEnvironment(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 deleteKxScalingGroupAsync(DeleteKxScalingGroupRequest request) {
return deleteKxScalingGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteKxScalingGroupAsync(final DeleteKxScalingGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteKxScalingGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteKxScalingGroupResult call() throws Exception {
DeleteKxScalingGroupResult result = null;
try {
result = executeDeleteKxScalingGroup(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 deleteKxUserAsync(DeleteKxUserRequest request) {
return deleteKxUserAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteKxUserAsync(final DeleteKxUserRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteKxUserRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteKxUserResult call() throws Exception {
DeleteKxUserResult result = null;
try {
result = executeDeleteKxUser(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 deleteKxVolumeAsync(DeleteKxVolumeRequest request) {
return deleteKxVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteKxVolumeAsync(final DeleteKxVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteKxVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteKxVolumeResult call() throws Exception {
DeleteKxVolumeResult result = null;
try {
result = executeDeleteKxVolume(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future getEnvironmentAsync(GetEnvironmentRequest request) {
return getEnvironmentAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future getEnvironmentAsync(final GetEnvironmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetEnvironmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetEnvironmentResult call() throws Exception {
GetEnvironmentResult result = null;
try {
result = executeGetEnvironment(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 getKxChangesetAsync(GetKxChangesetRequest request) {
return getKxChangesetAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxChangesetAsync(final GetKxChangesetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxChangesetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxChangesetResult call() throws Exception {
GetKxChangesetResult result = null;
try {
result = executeGetKxChangeset(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 getKxClusterAsync(GetKxClusterRequest request) {
return getKxClusterAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxClusterAsync(final GetKxClusterRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxClusterRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxClusterResult call() throws Exception {
GetKxClusterResult result = null;
try {
result = executeGetKxCluster(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 getKxConnectionStringAsync(GetKxConnectionStringRequest request) {
return getKxConnectionStringAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxConnectionStringAsync(final GetKxConnectionStringRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxConnectionStringRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxConnectionStringResult call() throws Exception {
GetKxConnectionStringResult result = null;
try {
result = executeGetKxConnectionString(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 getKxDatabaseAsync(GetKxDatabaseRequest request) {
return getKxDatabaseAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxDatabaseAsync(final GetKxDatabaseRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxDatabaseRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxDatabaseResult call() throws Exception {
GetKxDatabaseResult result = null;
try {
result = executeGetKxDatabase(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 getKxDataviewAsync(GetKxDataviewRequest request) {
return getKxDataviewAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxDataviewAsync(final GetKxDataviewRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxDataviewRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxDataviewResult call() throws Exception {
GetKxDataviewResult result = null;
try {
result = executeGetKxDataview(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 getKxEnvironmentAsync(GetKxEnvironmentRequest request) {
return getKxEnvironmentAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxEnvironmentAsync(final GetKxEnvironmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxEnvironmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxEnvironmentResult call() throws Exception {
GetKxEnvironmentResult result = null;
try {
result = executeGetKxEnvironment(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 getKxScalingGroupAsync(GetKxScalingGroupRequest request) {
return getKxScalingGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxScalingGroupAsync(final GetKxScalingGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxScalingGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxScalingGroupResult call() throws Exception {
GetKxScalingGroupResult result = null;
try {
result = executeGetKxScalingGroup(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 getKxUserAsync(GetKxUserRequest request) {
return getKxUserAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxUserAsync(final GetKxUserRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxUserRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxUserResult call() throws Exception {
GetKxUserResult result = null;
try {
result = executeGetKxUser(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 getKxVolumeAsync(GetKxVolumeRequest request) {
return getKxVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future getKxVolumeAsync(final GetKxVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetKxVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetKxVolumeResult call() throws Exception {
GetKxVolumeResult result = null;
try {
result = executeGetKxVolume(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future listEnvironmentsAsync(ListEnvironmentsRequest request) {
return listEnvironmentsAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future listEnvironmentsAsync(final ListEnvironmentsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListEnvironmentsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListEnvironmentsResult call() throws Exception {
ListEnvironmentsResult result = null;
try {
result = executeListEnvironments(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 listKxChangesetsAsync(ListKxChangesetsRequest request) {
return listKxChangesetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxChangesetsAsync(final ListKxChangesetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxChangesetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxChangesetsResult call() throws Exception {
ListKxChangesetsResult result = null;
try {
result = executeListKxChangesets(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 listKxClusterNodesAsync(ListKxClusterNodesRequest request) {
return listKxClusterNodesAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxClusterNodesAsync(final ListKxClusterNodesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxClusterNodesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxClusterNodesResult call() throws Exception {
ListKxClusterNodesResult result = null;
try {
result = executeListKxClusterNodes(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 listKxClustersAsync(ListKxClustersRequest request) {
return listKxClustersAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxClustersAsync(final ListKxClustersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxClustersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxClustersResult call() throws Exception {
ListKxClustersResult result = null;
try {
result = executeListKxClusters(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 listKxDatabasesAsync(ListKxDatabasesRequest request) {
return listKxDatabasesAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxDatabasesAsync(final ListKxDatabasesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxDatabasesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxDatabasesResult call() throws Exception {
ListKxDatabasesResult result = null;
try {
result = executeListKxDatabases(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 listKxDataviewsAsync(ListKxDataviewsRequest request) {
return listKxDataviewsAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxDataviewsAsync(final ListKxDataviewsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxDataviewsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxDataviewsResult call() throws Exception {
ListKxDataviewsResult result = null;
try {
result = executeListKxDataviews(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 listKxEnvironmentsAsync(ListKxEnvironmentsRequest request) {
return listKxEnvironmentsAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxEnvironmentsAsync(final ListKxEnvironmentsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxEnvironmentsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxEnvironmentsResult call() throws Exception {
ListKxEnvironmentsResult result = null;
try {
result = executeListKxEnvironments(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 listKxScalingGroupsAsync(ListKxScalingGroupsRequest request) {
return listKxScalingGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxScalingGroupsAsync(final ListKxScalingGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxScalingGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxScalingGroupsResult call() throws Exception {
ListKxScalingGroupsResult result = null;
try {
result = executeListKxScalingGroups(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 listKxUsersAsync(ListKxUsersRequest request) {
return listKxUsersAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxUsersAsync(final ListKxUsersRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxUsersRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxUsersResult call() throws Exception {
ListKxUsersResult result = null;
try {
result = executeListKxUsers(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 listKxVolumesAsync(ListKxVolumesRequest request) {
return listKxVolumesAsync(request, null);
}
@Override
public java.util.concurrent.Future listKxVolumesAsync(final ListKxVolumesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListKxVolumesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListKxVolumesResult call() throws Exception {
ListKxVolumesResult result = null;
try {
result = executeListKxVolumes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request) {
return listTagsForResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTagsForResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTagsForResourceResult call() throws Exception {
ListTagsForResourceResult result = null;
try {
result = executeListTagsForResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request) {
return tagResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final TagResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public TagResourceResult call() throws Exception {
TagResourceResult result = null;
try {
result = executeTagResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request) {
return untagResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UntagResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UntagResourceResult call() throws Exception {
UntagResourceResult result = null;
try {
result = executeUntagResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
@Deprecated
public java.util.concurrent.Future updateEnvironmentAsync(UpdateEnvironmentRequest request) {
return updateEnvironmentAsync(request, null);
}
@Override
@Deprecated
public java.util.concurrent.Future updateEnvironmentAsync(final UpdateEnvironmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateEnvironmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateEnvironmentResult call() throws Exception {
UpdateEnvironmentResult result = null;
try {
result = executeUpdateEnvironment(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 updateKxClusterCodeConfigurationAsync(
UpdateKxClusterCodeConfigurationRequest request) {
return updateKxClusterCodeConfigurationAsync(request, null);
}
@Override
public java.util.concurrent.Future updateKxClusterCodeConfigurationAsync(
final UpdateKxClusterCodeConfigurationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateKxClusterCodeConfigurationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateKxClusterCodeConfigurationResult call() throws Exception {
UpdateKxClusterCodeConfigurationResult result = null;
try {
result = executeUpdateKxClusterCodeConfiguration(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 updateKxClusterDatabasesAsync(UpdateKxClusterDatabasesRequest request) {
return updateKxClusterDatabasesAsync(request, null);
}
@Override
public java.util.concurrent.Future updateKxClusterDatabasesAsync(final UpdateKxClusterDatabasesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateKxClusterDatabasesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateKxClusterDatabasesResult call() throws Exception {
UpdateKxClusterDatabasesResult result = null;
try {
result = executeUpdateKxClusterDatabases(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 updateKxDatabaseAsync(UpdateKxDatabaseRequest request) {
return updateKxDatabaseAsync(request, null);
}
@Override
public java.util.concurrent.Future updateKxDatabaseAsync(final UpdateKxDatabaseRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateKxDatabaseRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateKxDatabaseResult call() throws Exception {
UpdateKxDatabaseResult result = null;
try {
result = executeUpdateKxDatabase(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 updateKxDataviewAsync(UpdateKxDataviewRequest request) {
return updateKxDataviewAsync(request, null);
}
@Override
public java.util.concurrent.Future updateKxDataviewAsync(final UpdateKxDataviewRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateKxDataviewRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateKxDataviewResult call() throws Exception {
UpdateKxDataviewResult result = null;
try {
result = executeUpdateKxDataview(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 updateKxEnvironmentAsync(UpdateKxEnvironmentRequest request) {
return updateKxEnvironmentAsync(request, null);
}
@Override
public java.util.concurrent.Future updateKxEnvironmentAsync(final UpdateKxEnvironmentRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateKxEnvironmentRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateKxEnvironmentResult call() throws Exception {
UpdateKxEnvironmentResult result = null;
try {
result = executeUpdateKxEnvironment(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 updateKxEnvironmentNetworkAsync(UpdateKxEnvironmentNetworkRequest request) {
return updateKxEnvironmentNetworkAsync(request, null);
}
@Override
public java.util.concurrent.Future updateKxEnvironmentNetworkAsync(final UpdateKxEnvironmentNetworkRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateKxEnvironmentNetworkRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateKxEnvironmentNetworkResult call() throws Exception {
UpdateKxEnvironmentNetworkResult result = null;
try {
result = executeUpdateKxEnvironmentNetwork(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 updateKxUserAsync(UpdateKxUserRequest request) {
return updateKxUserAsync(request, null);
}
@Override
public java.util.concurrent.Future updateKxUserAsync(final UpdateKxUserRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateKxUserRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateKxUserResult call() throws Exception {
UpdateKxUserResult result = null;
try {
result = executeUpdateKxUser(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 updateKxVolumeAsync(UpdateKxVolumeRequest request) {
return updateKxVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future updateKxVolumeAsync(final UpdateKxVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateKxVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateKxVolumeResult call() throws Exception {
UpdateKxVolumeResult result = null;
try {
result = executeUpdateKxVolume(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