Class ParallelTasksExecutor
- java.lang.Object
- 
- com.atlassian.confluence.impl.backuprestore.ParallelTasksExecutor
 
- 
- All Implemented Interfaces:
- AutoCloseable
 
 public class ParallelTasksExecutor extends Object implements AutoCloseable Allows to multiple tasks in parallel. Creates a queue for tasks.- Since:
- 7.20
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidinterruptAllJobs()<T> Future<T>runGlobalTaskAsync(Callable<T> task, String info)<T> Future<T>runTaskAsync(Callable<T> task, String info)intwaitUntilAllGlobalJobsComplete()voidwaitUntilAllStageJobsComplete()voidwaitUntilAllStageJobsComplete(@Nullable Duration jobTimeout)
 
- 
- 
- 
Method Detail- 
interruptAllJobspublic void interruptAllJobs() throws InterruptedException- Throws:
- InterruptedException
 
 - 
waitUntilAllStageJobsCompletepublic void waitUntilAllStageJobsComplete(@Nullable Duration jobTimeout) throws ExecutionException, InterruptedException, TimeoutException 
 - 
waitUntilAllGlobalJobsCompletepublic int waitUntilAllGlobalJobsComplete() throws ExecutionException, InterruptedException, TimeoutException
 - 
waitUntilAllStageJobsCompletepublic void waitUntilAllStageJobsComplete() throws ExecutionException, InterruptedException, TimeoutException
 - 
closepublic void close() throws InterruptedException- Specified by:
- closein interface- AutoCloseable
- Throws:
- InterruptedException
 
 
- 
 
-