com.amazonaws.services.iottwinmaker.AWSIoTTwinMakerAsyncClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-iottwinmaker Show documentation
Show all versions of aws-java-sdk-iottwinmaker Show documentation
The AWS Java SDK for AWS IoT TwinMaker module holds the client classes that are used for communicating with AWS IoT TwinMaker Service
/*
* 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.iottwinmaker;
import javax.annotation.Generated;
import com.amazonaws.services.iottwinmaker.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing AWS IoT TwinMaker 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.
*
*
*
* TwinMaker is in public preview and is subject to change.
*
*
*
* IoT TwinMaker is a service that enables you to build operational digital twins of physical systems. IoT TwinMaker
* overlays measurements and analysis from real-world sensors, cameras, and enterprise applications so you can create
* data visualizations to monitor your physical factory, building, or industrial plant. You can use this real-world data
* to monitor operations and diagnose and repair errors.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSIoTTwinMakerAsyncClient extends AWSIoTTwinMakerClient implements AWSIoTTwinMakerAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AWSIoTTwinMakerAsyncClientBuilder asyncBuilder() {
return AWSIoTTwinMakerAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS IoT TwinMaker using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSIoTTwinMakerAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS IoT TwinMaker using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSIoTTwinMakerAsyncClient(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 batchPutPropertyValuesAsync(BatchPutPropertyValuesRequest request) {
return batchPutPropertyValuesAsync(request, null);
}
@Override
public java.util.concurrent.Future batchPutPropertyValuesAsync(final BatchPutPropertyValuesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final BatchPutPropertyValuesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public BatchPutPropertyValuesResult call() throws Exception {
BatchPutPropertyValuesResult result = null;
try {
result = executeBatchPutPropertyValues(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 createComponentTypeAsync(CreateComponentTypeRequest request) {
return createComponentTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future createComponentTypeAsync(final CreateComponentTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateComponentTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateComponentTypeResult call() throws Exception {
CreateComponentTypeResult result = null;
try {
result = executeCreateComponentType(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 createEntityAsync(CreateEntityRequest request) {
return createEntityAsync(request, null);
}
@Override
public java.util.concurrent.Future createEntityAsync(final CreateEntityRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateEntityRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateEntityResult call() throws Exception {
CreateEntityResult result = null;
try {
result = executeCreateEntity(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 createSceneAsync(CreateSceneRequest request) {
return createSceneAsync(request, null);
}
@Override
public java.util.concurrent.Future createSceneAsync(final CreateSceneRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSceneRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSceneResult call() throws Exception {
CreateSceneResult result = null;
try {
result = executeCreateScene(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 createWorkspaceAsync(CreateWorkspaceRequest request) {
return createWorkspaceAsync(request, null);
}
@Override
public java.util.concurrent.Future createWorkspaceAsync(final CreateWorkspaceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateWorkspaceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateWorkspaceResult call() throws Exception {
CreateWorkspaceResult result = null;
try {
result = executeCreateWorkspace(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 deleteComponentTypeAsync(DeleteComponentTypeRequest request) {
return deleteComponentTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteComponentTypeAsync(final DeleteComponentTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteComponentTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteComponentTypeResult call() throws Exception {
DeleteComponentTypeResult result = null;
try {
result = executeDeleteComponentType(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 deleteEntityAsync(DeleteEntityRequest request) {
return deleteEntityAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteEntityAsync(final DeleteEntityRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteEntityRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteEntityResult call() throws Exception {
DeleteEntityResult result = null;
try {
result = executeDeleteEntity(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 deleteSceneAsync(DeleteSceneRequest request) {
return deleteSceneAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteSceneAsync(final DeleteSceneRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteSceneRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteSceneResult call() throws Exception {
DeleteSceneResult result = null;
try {
result = executeDeleteScene(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 deleteWorkspaceAsync(DeleteWorkspaceRequest request) {
return deleteWorkspaceAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteWorkspaceAsync(final DeleteWorkspaceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteWorkspaceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteWorkspaceResult call() throws Exception {
DeleteWorkspaceResult result = null;
try {
result = executeDeleteWorkspace(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 getComponentTypeAsync(GetComponentTypeRequest request) {
return getComponentTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future getComponentTypeAsync(final GetComponentTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetComponentTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetComponentTypeResult call() throws Exception {
GetComponentTypeResult result = null;
try {
result = executeGetComponentType(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 getEntityAsync(GetEntityRequest request) {
return getEntityAsync(request, null);
}
@Override
public java.util.concurrent.Future getEntityAsync(final GetEntityRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetEntityRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetEntityResult call() throws Exception {
GetEntityResult result = null;
try {
result = executeGetEntity(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 getPropertyValueAsync(GetPropertyValueRequest request) {
return getPropertyValueAsync(request, null);
}
@Override
public java.util.concurrent.Future getPropertyValueAsync(final GetPropertyValueRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetPropertyValueRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetPropertyValueResult call() throws Exception {
GetPropertyValueResult result = null;
try {
result = executeGetPropertyValue(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 getPropertyValueHistoryAsync(GetPropertyValueHistoryRequest request) {
return getPropertyValueHistoryAsync(request, null);
}
@Override
public java.util.concurrent.Future getPropertyValueHistoryAsync(final GetPropertyValueHistoryRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetPropertyValueHistoryRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetPropertyValueHistoryResult call() throws Exception {
GetPropertyValueHistoryResult result = null;
try {
result = executeGetPropertyValueHistory(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 getSceneAsync(GetSceneRequest request) {
return getSceneAsync(request, null);
}
@Override
public java.util.concurrent.Future getSceneAsync(final GetSceneRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetSceneRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetSceneResult call() throws Exception {
GetSceneResult result = null;
try {
result = executeGetScene(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 getWorkspaceAsync(GetWorkspaceRequest request) {
return getWorkspaceAsync(request, null);
}
@Override
public java.util.concurrent.Future getWorkspaceAsync(final GetWorkspaceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetWorkspaceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetWorkspaceResult call() throws Exception {
GetWorkspaceResult result = null;
try {
result = executeGetWorkspace(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 listComponentTypesAsync(ListComponentTypesRequest request) {
return listComponentTypesAsync(request, null);
}
@Override
public java.util.concurrent.Future listComponentTypesAsync(final ListComponentTypesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListComponentTypesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListComponentTypesResult call() throws Exception {
ListComponentTypesResult result = null;
try {
result = executeListComponentTypes(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 listEntitiesAsync(ListEntitiesRequest request) {
return listEntitiesAsync(request, null);
}
@Override
public java.util.concurrent.Future listEntitiesAsync(final ListEntitiesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListEntitiesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListEntitiesResult call() throws Exception {
ListEntitiesResult result = null;
try {
result = executeListEntities(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 listScenesAsync(ListScenesRequest request) {
return listScenesAsync(request, null);
}
@Override
public java.util.concurrent.Future listScenesAsync(final ListScenesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListScenesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListScenesResult call() throws Exception {
ListScenesResult result = null;
try {
result = executeListScenes(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 listWorkspacesAsync(ListWorkspacesRequest request) {
return listWorkspacesAsync(request, null);
}
@Override
public java.util.concurrent.Future listWorkspacesAsync(final ListWorkspacesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListWorkspacesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListWorkspacesResult call() throws Exception {
ListWorkspacesResult result = null;
try {
result = executeListWorkspaces(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request) {
return tagResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final TagResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public TagResourceResult call() throws Exception {
TagResourceResult result = null;
try {
result = executeTagResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request) {
return untagResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UntagResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UntagResourceResult call() throws Exception {
UntagResourceResult result = null;
try {
result = executeUntagResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future updateComponentTypeAsync(UpdateComponentTypeRequest request) {
return updateComponentTypeAsync(request, null);
}
@Override
public java.util.concurrent.Future updateComponentTypeAsync(final UpdateComponentTypeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateComponentTypeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateComponentTypeResult call() throws Exception {
UpdateComponentTypeResult result = null;
try {
result = executeUpdateComponentType(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 updateEntityAsync(UpdateEntityRequest request) {
return updateEntityAsync(request, null);
}
@Override
public java.util.concurrent.Future updateEntityAsync(final UpdateEntityRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateEntityRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateEntityResult call() throws Exception {
UpdateEntityResult result = null;
try {
result = executeUpdateEntity(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 updateSceneAsync(UpdateSceneRequest request) {
return updateSceneAsync(request, null);
}
@Override
public java.util.concurrent.Future updateSceneAsync(final UpdateSceneRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateSceneRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateSceneResult call() throws Exception {
UpdateSceneResult result = null;
try {
result = executeUpdateScene(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 updateWorkspaceAsync(UpdateWorkspaceRequest request) {
return updateWorkspaceAsync(request, null);
}
@Override
public java.util.concurrent.Future updateWorkspaceAsync(final UpdateWorkspaceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateWorkspaceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateWorkspaceResult call() throws Exception {
UpdateWorkspaceResult result = null;
try {
result = executeUpdateWorkspace(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