public class RecursiveThreadExecutor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RecursiveThreadExecutor.Task |
| Constructor and Description |
|---|
RecursiveThreadExecutor() |
RecursiveThreadExecutor(int maxThreads)
maxThread - limit max thread by number.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
execute(RecursiveThreadExecutor.Task t) |
void |
interrupt() |
void |
join() |
void |
waitTermination(RecursiveThreadExecutor.Task t) |
public RecursiveThreadExecutor(int maxThreads)
maxThreads - set max threads to 0 to run tasks on the current threadpublic RecursiveThreadExecutor()
public void interrupt()
public void join()
throws InterruptedException
InterruptedExceptionpublic void close()
throws InterruptedException
InterruptedExceptionpublic void execute(RecursiveThreadExecutor.Task t)
public void waitTermination(RecursiveThreadExecutor.Task t) throws InterruptedException
InterruptedExceptionCopyright © 2016. All Rights Reserved.