A C F G M N O P R S T 
All Classes All Packages

A

applyTaskExecutorToThreadFactory(Supplier<TaskExecutor>, ThreadFactory) - Static method in class org.scijava.concurrent.TaskExecutors
Returns a ThreadFactory.

C

close() - Method in interface org.scijava.concurrent.TaskExecutor
 

F

fixedThreadPool(int) - Static method in class org.scijava.concurrent.TaskExecutors
Returns a TaskExecutor that uses a fixed thread pool with the given number of threads.
forEach(List<? extends T>, Consumer<? super T>) - Method in interface org.scijava.concurrent.TaskExecutor
Like TaskExecutor.runAll(List) but - instead of a list of tasks - it takes a list of parameters and a function that is called for each of the parameters.
forEachApply(List<? extends T>, Function<? super T, ? extends R>) - Method in interface org.scijava.concurrent.TaskExecutor
Like TaskExecutor.forEach(List, Consumer) but collects the results.
forExecutorService(ExecutorService) - Static method in class org.scijava.concurrent.TaskExecutors
Creates a TaskExecutor that wraps around given ExecutorService.
forExecutorServiceAndNumTasks(ExecutorService, int) - Static method in class org.scijava.concurrent.TaskExecutors
Creates a TaskExecutor that wraps around given ExecutorService, and will suggest the given number of tasks when asked.
forExecutorServiceAndNumThreads(ExecutorService, int) - Static method in class org.scijava.concurrent.TaskExecutors
Creates a TaskExecutor that wraps around given ExecutorService, and will return the given parallelism.

G

getExecutorService() - Static method in class org.scijava.concurrent.Parallelization
 
getExecutorService() - Method in interface org.scijava.concurrent.TaskExecutor
Get the underlying ExecutorService.
getParallelism() - Method in interface org.scijava.concurrent.TaskExecutor
Get the number of threads that are used for execution.
getTaskExecutor() - Static method in class org.scijava.concurrent.Parallelization
Returns the TaskExecutor that was set for this thread.

M

multiThreaded() - Static method in class org.scijava.concurrent.TaskExecutors
TaskExecutor for multi-threaded execution.

N

nestedFixedThreadPool(int, int) - Static method in class org.scijava.concurrent.TaskExecutors
Returns a TaskExecutor that uses a fixed thread pool with the given number of threads.
numThreads(int) - Static method in class org.scijava.concurrent.TaskExecutors
TaskExecutor that uses the given number or threads.

O

org.scijava.concurrent - module org.scijava.concurrent
 
org.scijava.concurrent - package org.scijava.concurrent
 

P

Parallelization - Class in org.scijava.concurrent
This class allows to configure an algorithm for parallelization.

R

runAll(List<Runnable>) - Method in interface org.scijava.concurrent.TaskExecutor
This method will execute the given list of tasks.
runMultiThreaded(Runnable) - Static method in class org.scijava.concurrent.Parallelization
To run an algorithm multi-threaded use:
runMultiThreaded(Callable<T>) - Static method in class org.scijava.concurrent.Parallelization
To run an algorithm multi-threaded use:
runSingleThreaded(Runnable) - Static method in class org.scijava.concurrent.Parallelization
To run an algorithm single-threaded use:
runSingleThreaded(Callable<T>) - Static method in class org.scijava.concurrent.Parallelization
To run an algorithm single-threaded use:
runWithExecutor(ExecutorService, Runnable) - Static method in class org.scijava.concurrent.Parallelization
Executes the given Runnable with the given ExecutorService, and waits for the execution to finish.
runWithExecutor(ExecutorService, Callable<R>) - Static method in class org.scijava.concurrent.Parallelization
Executes the given Callable with the given ExecutorService, waits for the execution to finish and returns the result.
runWithExecutor(TaskExecutor, Runnable) - Static method in class org.scijava.concurrent.Parallelization
Executes the given Runnable with the given TaskExecutor, and waits for the execution to finish.
runWithExecutor(TaskExecutor, Callable<T>) - Static method in class org.scijava.concurrent.Parallelization
Executes the given Callable with the given TaskExecutor, waits for the execution to finish and returns the result.
runWithNumThreads(int, Runnable) - Static method in class org.scijava.concurrent.Parallelization
To run an algorithm a given number of threads use:
runWithNumThreads(int, Callable<R>) - Static method in class org.scijava.concurrent.Parallelization
To run an algorithm a given number of threads use:

S

singleThreaded() - Static method in class org.scijava.concurrent.TaskExecutors
TaskExecutor for single threaded execution.
suggestNumberOfTasks() - Method in interface org.scijava.concurrent.TaskExecutor
If there is a big task that could be split into sub tasks for parallelization, this method gives you a reasonable number of sub tasks.

T

TaskExecutor - Interface in org.scijava.concurrent
TaskExecutor is recommended to be used in image processing algorithms instead of ExecutorService.
TaskExecutors - Class in org.scijava.concurrent
Utility class, with methods to create TaskExecutors.
threadFactory(Supplier<TaskExecutor>) - Static method in class org.scijava.concurrent.TaskExecutors
Returns a ThreadFactory.
A C F G M N O P R S T 
All Classes All Packages