AsyncTask instances on a separate thread. Needs to be disposed via a call to
dispose() when no longer used, in which case the executor waits for running tasks to finish. Scheduled but not yet
running tasks will not be executed.
| Modifier and Type | Field and Description |
|---|---|
| private final ExecutorService |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AsyncExecutor(int maxConcurrent, final String
The name of the threads. name)Creates a new AsynchExecutor that allows maxConcurrent |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements com. Waits for running |
| public <T> AsyncResult |
| executor | back to summary |
|---|---|
| private final ExecutorService executor | |
| AsyncExecutor | back to summary |
|---|---|
| public AsyncExecutor(int maxConcurrent) Creates a new AsyncExecutor with the name "AsyncExecutor-Thread". | |
| AsyncExecutor | back to summary |
|---|---|
| public AsyncExecutor(int maxConcurrent, final String name) Creates a new AsynchExecutor that allows maxConcurrent
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Waits for running
| |
| submit | back to summary |
|---|---|
| public <T> AsyncResult Submits a
| |