com.amazonaws.services.forecast.AmazonForecastAsyncClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-forecast Show documentation
Show all versions of aws-java-sdk-forecast Show documentation
The AWS Java SDK for Amazon Forecast module holds the client classes that are used for communicating with Amazon Forecast Service
/*
* Copyright 2015-2020 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.forecast;
import javax.annotation.Generated;
import com.amazonaws.services.forecast.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import java.util.concurrent.ExecutorService;
/**
* Client for accessing Amazon Forecast Service 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.
*
*
* Provides APIs for creating and managing Amazon Forecast resources.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonForecastAsyncClient extends AmazonForecastClient implements AmazonForecastAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
public static AmazonForecastAsyncClientBuilder asyncBuilder() {
return AmazonForecastAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on Amazon Forecast Service using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AmazonForecastAsyncClient(AwsAsyncClientParams asyncClientParams) {
super(asyncClientParams);
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 createDatasetAsync(CreateDatasetRequest request) {
return createDatasetAsync(request, null);
}
@Override
public java.util.concurrent.Future createDatasetAsync(final CreateDatasetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDatasetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDatasetResult call() throws Exception {
CreateDatasetResult result = null;
try {
result = executeCreateDataset(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 createDatasetGroupAsync(CreateDatasetGroupRequest request) {
return createDatasetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future createDatasetGroupAsync(final CreateDatasetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDatasetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDatasetGroupResult call() throws Exception {
CreateDatasetGroupResult result = null;
try {
result = executeCreateDatasetGroup(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 createDatasetImportJobAsync(CreateDatasetImportJobRequest request) {
return createDatasetImportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future createDatasetImportJobAsync(final CreateDatasetImportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateDatasetImportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateDatasetImportJobResult call() throws Exception {
CreateDatasetImportJobResult result = null;
try {
result = executeCreateDatasetImportJob(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 createForecastAsync(CreateForecastRequest request) {
return createForecastAsync(request, null);
}
@Override
public java.util.concurrent.Future createForecastAsync(final CreateForecastRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateForecastRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateForecastResult call() throws Exception {
CreateForecastResult result = null;
try {
result = executeCreateForecast(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 createForecastExportJobAsync(CreateForecastExportJobRequest request) {
return createForecastExportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future createForecastExportJobAsync(final CreateForecastExportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateForecastExportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateForecastExportJobResult call() throws Exception {
CreateForecastExportJobResult result = null;
try {
result = executeCreateForecastExportJob(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 createPredictorAsync(CreatePredictorRequest request) {
return createPredictorAsync(request, null);
}
@Override
public java.util.concurrent.Future createPredictorAsync(final CreatePredictorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreatePredictorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreatePredictorResult call() throws Exception {
CreatePredictorResult result = null;
try {
result = executeCreatePredictor(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 deleteDatasetAsync(DeleteDatasetRequest request) {
return deleteDatasetAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDatasetAsync(final DeleteDatasetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDatasetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDatasetResult call() throws Exception {
DeleteDatasetResult result = null;
try {
result = executeDeleteDataset(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 deleteDatasetGroupAsync(DeleteDatasetGroupRequest request) {
return deleteDatasetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDatasetGroupAsync(final DeleteDatasetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDatasetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDatasetGroupResult call() throws Exception {
DeleteDatasetGroupResult result = null;
try {
result = executeDeleteDatasetGroup(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 deleteDatasetImportJobAsync(DeleteDatasetImportJobRequest request) {
return deleteDatasetImportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteDatasetImportJobAsync(final DeleteDatasetImportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteDatasetImportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteDatasetImportJobResult call() throws Exception {
DeleteDatasetImportJobResult result = null;
try {
result = executeDeleteDatasetImportJob(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 deleteForecastAsync(DeleteForecastRequest request) {
return deleteForecastAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteForecastAsync(final DeleteForecastRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteForecastRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteForecastResult call() throws Exception {
DeleteForecastResult result = null;
try {
result = executeDeleteForecast(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 deleteForecastExportJobAsync(DeleteForecastExportJobRequest request) {
return deleteForecastExportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteForecastExportJobAsync(final DeleteForecastExportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteForecastExportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteForecastExportJobResult call() throws Exception {
DeleteForecastExportJobResult result = null;
try {
result = executeDeleteForecastExportJob(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 deletePredictorAsync(DeletePredictorRequest request) {
return deletePredictorAsync(request, null);
}
@Override
public java.util.concurrent.Future deletePredictorAsync(final DeletePredictorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeletePredictorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeletePredictorResult call() throws Exception {
DeletePredictorResult result = null;
try {
result = executeDeletePredictor(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 describeDatasetAsync(DescribeDatasetRequest request) {
return describeDatasetAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDatasetAsync(final DescribeDatasetRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDatasetRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDatasetResult call() throws Exception {
DescribeDatasetResult result = null;
try {
result = executeDescribeDataset(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 describeDatasetGroupAsync(DescribeDatasetGroupRequest request) {
return describeDatasetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDatasetGroupAsync(final DescribeDatasetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDatasetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDatasetGroupResult call() throws Exception {
DescribeDatasetGroupResult result = null;
try {
result = executeDescribeDatasetGroup(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 describeDatasetImportJobAsync(DescribeDatasetImportJobRequest request) {
return describeDatasetImportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeDatasetImportJobAsync(final DescribeDatasetImportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeDatasetImportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeDatasetImportJobResult call() throws Exception {
DescribeDatasetImportJobResult result = null;
try {
result = executeDescribeDatasetImportJob(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 describeForecastAsync(DescribeForecastRequest request) {
return describeForecastAsync(request, null);
}
@Override
public java.util.concurrent.Future describeForecastAsync(final DescribeForecastRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeForecastRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeForecastResult call() throws Exception {
DescribeForecastResult result = null;
try {
result = executeDescribeForecast(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 describeForecastExportJobAsync(DescribeForecastExportJobRequest request) {
return describeForecastExportJobAsync(request, null);
}
@Override
public java.util.concurrent.Future describeForecastExportJobAsync(final DescribeForecastExportJobRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeForecastExportJobRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeForecastExportJobResult call() throws Exception {
DescribeForecastExportJobResult result = null;
try {
result = executeDescribeForecastExportJob(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 describePredictorAsync(DescribePredictorRequest request) {
return describePredictorAsync(request, null);
}
@Override
public java.util.concurrent.Future describePredictorAsync(final DescribePredictorRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribePredictorRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribePredictorResult call() throws Exception {
DescribePredictorResult result = null;
try {
result = executeDescribePredictor(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 getAccuracyMetricsAsync(GetAccuracyMetricsRequest request) {
return getAccuracyMetricsAsync(request, null);
}
@Override
public java.util.concurrent.Future getAccuracyMetricsAsync(final GetAccuracyMetricsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final GetAccuracyMetricsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public GetAccuracyMetricsResult call() throws Exception {
GetAccuracyMetricsResult result = null;
try {
result = executeGetAccuracyMetrics(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 listDatasetGroupsAsync(ListDatasetGroupsRequest request) {
return listDatasetGroupsAsync(request, null);
}
@Override
public java.util.concurrent.Future listDatasetGroupsAsync(final ListDatasetGroupsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDatasetGroupsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDatasetGroupsResult call() throws Exception {
ListDatasetGroupsResult result = null;
try {
result = executeListDatasetGroups(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 listDatasetImportJobsAsync(ListDatasetImportJobsRequest request) {
return listDatasetImportJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future listDatasetImportJobsAsync(final ListDatasetImportJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDatasetImportJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDatasetImportJobsResult call() throws Exception {
ListDatasetImportJobsResult result = null;
try {
result = executeListDatasetImportJobs(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 listDatasetsAsync(ListDatasetsRequest request) {
return listDatasetsAsync(request, null);
}
@Override
public java.util.concurrent.Future listDatasetsAsync(final ListDatasetsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListDatasetsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListDatasetsResult call() throws Exception {
ListDatasetsResult result = null;
try {
result = executeListDatasets(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 listForecastExportJobsAsync(ListForecastExportJobsRequest request) {
return listForecastExportJobsAsync(request, null);
}
@Override
public java.util.concurrent.Future listForecastExportJobsAsync(final ListForecastExportJobsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListForecastExportJobsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListForecastExportJobsResult call() throws Exception {
ListForecastExportJobsResult result = null;
try {
result = executeListForecastExportJobs(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 listForecastsAsync(ListForecastsRequest request) {
return listForecastsAsync(request, null);
}
@Override
public java.util.concurrent.Future listForecastsAsync(final ListForecastsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListForecastsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListForecastsResult call() throws Exception {
ListForecastsResult result = null;
try {
result = executeListForecasts(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 listPredictorsAsync(ListPredictorsRequest request) {
return listPredictorsAsync(request, null);
}
@Override
public java.util.concurrent.Future listPredictorsAsync(final ListPredictorsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListPredictorsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListPredictorsResult call() throws Exception {
ListPredictorsResult result = null;
try {
result = executeListPredictors(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 updateDatasetGroupAsync(UpdateDatasetGroupRequest request) {
return updateDatasetGroupAsync(request, null);
}
@Override
public java.util.concurrent.Future updateDatasetGroupAsync(final UpdateDatasetGroupRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final UpdateDatasetGroupRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public UpdateDatasetGroupResult call() throws Exception {
UpdateDatasetGroupResult result = null;
try {
result = executeUpdateDatasetGroup(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