Interface ModelResolutionTaskRunner
public interface ModelResolutionTaskRunner
Task runner
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelResolutionTaskRunnerReturns an instance of a blocking task runner with no error handler.static ModelResolutionTaskRunnergetBlockingTaskRunner(ModelResolutionTaskErrorHandler errorHandler) Returns an instance of a blocking task runner with a custom error handler.static ModelResolutionTaskRunnerReturns 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) 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
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
static ModelResolutionTaskRunner getNonBlockingTaskRunner(ModelResolutionTaskErrorHandler errorHandler) 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
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
static ModelResolutionTaskRunner getBlockingTaskRunner(ModelResolutionTaskErrorHandler errorHandler) 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.
-