Uses of Interface
org.scijava.concurrent.TaskExecutor
-
-
Uses of TaskExecutor in org.scijava.concurrent
Methods in org.scijava.concurrent that return TaskExecutor Modifier and Type Method Description static TaskExecutorTaskExecutors. fixedThreadPool(int numThreads)Returns aTaskExecutorthat uses a fixed thread pool with the given number of threads.static TaskExecutorTaskExecutors. forExecutorService(ExecutorService executorService)Creates aTaskExecutorthat wraps around givenExecutorService.static TaskExecutorTaskExecutors. forExecutorServiceAndNumTasks(ExecutorService executorService, int numTasks)Creates aTaskExecutorthat wraps around givenExecutorService, and will suggest the given number of tasks when asked.static TaskExecutorTaskExecutors. forExecutorServiceAndNumThreads(ExecutorService executorService, int numThreads)Creates aTaskExecutorthat wraps around givenExecutorService, and will return the given parallelism.static TaskExecutorParallelization. getTaskExecutor()Returns theTaskExecutorthat was set for this thread.static TaskExecutorTaskExecutors. multiThreaded()TaskExecutorfor multi-threaded execution.static TaskExecutorTaskExecutors. nestedFixedThreadPool(int numThreads, int numSubThreads)Returns aTaskExecutorthat uses a fixed thread pool with the given number of threads.static TaskExecutorTaskExecutors. numThreads(int numThreads)TaskExecutorthat uses the given number or threads.static TaskExecutorTaskExecutors. singleThreaded()TaskExecutorfor single threaded execution.Methods in org.scijava.concurrent with parameters of type TaskExecutor Modifier and Type Method Description static voidParallelization. runWithExecutor(TaskExecutor taskExecutor, Runnable action)Executes the givenRunnablewith the givenTaskExecutor, and waits for the execution to finish.static <T> TParallelization. runWithExecutor(TaskExecutor taskExecutor, Callable<T> action)Executes the givenCallablewith the givenTaskExecutor, waits for the execution to finish and returns the result.Method parameters in org.scijava.concurrent with type arguments of type TaskExecutor Modifier and Type Method Description static ThreadFactoryTaskExecutors. applyTaskExecutorToThreadFactory(Supplier<TaskExecutor> taskExecutorFactory, ThreadFactory threadFactory)Returns aThreadFactory.static ThreadFactoryTaskExecutors. threadFactory(Supplier<TaskExecutor> taskExecutorFactory)Returns aThreadFactory.
-