public class ParallelTasksExecutor extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
ParallelTasksExecutor.TaskInfo |
| Constructor and Description |
|---|
ParallelTasksExecutor(int threadsNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
interruptAllJobs() |
Future<?> |
runTaskAsync(Callable<Void> task,
String info) |
void |
shutdown() |
void |
waitUntilAllJobsComplete() |
public void shutdown()
throws InterruptedException
InterruptedExceptionpublic void interruptAllJobs()
public void waitUntilAllJobsComplete()
throws ExecutionException,
InterruptedException
public void close()
throws InterruptedException
close in interface AutoCloseableInterruptedExceptionCopyright © 2003–2022 Atlassian. All rights reserved.