public class TaskExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_THREADS
Default thread count.
|
| Constructor and Description |
|---|
TaskExecutor(Config config) |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
call(Callable<V> task) |
<T,V> List<V> |
call(Collection<T> list,
CallableTask<T,V> task) |
<T> void |
run(Collection<T> list,
RunnableTask<T> task) |
void |
run(List<Runnable> tasks) |
void |
run(Runnable... tasks) |
void |
run(Runnable task) |
public static final int DEFAULT_THREADS
public TaskExecutor(Config config)
public void run(Runnable task)
public <T> void run(Collection<T> list, RunnableTask<T> task)
public <T,V> List<V> call(Collection<T> list, CallableTask<T,V> task)
public void run(Runnable... tasks)
Copyright © 2014-2015 Opoo.org. All Rights Reserved.