Interface ModelResolutionTaskRunner
public interface ModelResolutionTaskRunner
Task runner
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelResolutionTaskRunnerDeprecated, for removal: This API element is subject to removal in a future version.static ModelResolutionTaskRunnergetBlockingTaskRunner(ModelResolutionTaskErrorHandler errorHandler) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofModelResolutionTaskRunnerFactory.getBlockingTaskRunner(ModelResolutionTaskErrorHandler)Returns an instance of a blocking task runner with a custom error handler.static ModelResolutionTaskRunnerDeprecated, for removal: This API element is subject to removal in a future version.in favor ofModelResolutionTaskRunnerFactory.getNonBlockingTaskRunner()Returns an instance of a non-blocking task runner with an error handler that collects all task execution errors and throws a single error when all the tasks have finished.static ModelResolutionTaskRunnergetNonBlockingTaskRunner(ModelResolutionTaskErrorHandler errorHandler) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofModelResolutionTaskRunnerFactory.getNonBlockingTaskRunner(ModelResolutionTaskErrorHandler)Returns an instance of a non-blocking task runner with a custom error handler.voidrun(ModelResolutionTask task) Instructs a runner to run the passed in task.voidBlocking method that will return once all the tasks submitted by calling therun(ModelResolutionTask)method have been executed.
-
Method Details
-
getNonBlockingTaskRunner
Deprecated, for removal: This API element is subject to removal in a future version.in favor ofModelResolutionTaskRunnerFactory.getNonBlockingTaskRunner()Returns an instance of a non-blocking task runner with an error handler that collects all task execution errors and throws a single error when all the tasks have finished.- Returns:
- an instance of a non-blocking task runner
-
getNonBlockingTaskRunner
@Deprecated(forRemoval=true) static ModelResolutionTaskRunner getNonBlockingTaskRunner(ModelResolutionTaskErrorHandler errorHandler) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofModelResolutionTaskRunnerFactory.getNonBlockingTaskRunner(ModelResolutionTaskErrorHandler)Returns an instance of a non-blocking task runner with a custom error handler.- Parameters:
errorHandler- error handler- Returns:
- an instance of non-blocking task runner
-
getBlockingTaskRunner
Deprecated, for removal: This API element is subject to removal in a future version.in favor ofModelResolutionTaskRunnerFactory.getBlockingTaskRunner()Returns an instance of a blocking task runner with no error handler. Exceptions thrown from tasks will be immediately propagated to the caller.- Returns:
- an instance of a blocking task runner
-
getBlockingTaskRunner
@Deprecated(forRemoval=true) static ModelResolutionTaskRunner getBlockingTaskRunner(ModelResolutionTaskErrorHandler errorHandler) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofModelResolutionTaskRunnerFactory.getBlockingTaskRunner(ModelResolutionTaskErrorHandler)Returns an instance of a blocking task runner with a custom error handler.- Returns:
- an instance of a blocking task runner
-
run
Instructs a runner to run the passed in task.Whether this method is blocking or not will depend on the implementation.
- Parameters:
task- task to run
-
waitForCompletion
void waitForCompletion()Blocking method that will return once all the tasks submitted by calling therun(ModelResolutionTask)method have been executed.
-
ModelResolutionTaskRunnerFactory.getBlockingTaskRunner()Returns an instance of a blocking task runner with no error handler.