Class BatchTaskExecutorService
java.lang.Object
ubic.gemma.core.util.concurrent.AbstractDelegatingExecutor
ubic.gemma.core.util.concurrent.AbstractDelegatingExecutorService
ubic.gemma.cli.batch.BatchTaskExecutorService
- All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService, DelegatingExecutor, DelegatingExecutorService
public class BatchTaskExecutorService
extends AbstractDelegatingExecutorService
implements AutoCloseable
A task executor that automatically reports errors in batch tasks.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchTaskExecutorService(ExecutorService delegate, BatchTaskProgressReporter progressReporter) -
Method Summary
Methods inherited from class AbstractDelegatingExecutorService
awaitTermination, getDelegate, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from class AbstractDelegatingExecutor
execute
-
Constructor Details
-
BatchTaskExecutorService
public BatchTaskExecutorService(ExecutorService delegate, BatchTaskProgressReporter progressReporter)
-
-
Method Details
-
getProgressReporter
-
wrap
- Specified by:
wrapin classAbstractDelegatingExecutor
-
wrap
- Specified by:
wrapin classAbstractDelegatingExecutorService
-
getRemainingTasks
public int getRemainingTasks()Obtain the number of completed batch tasks. -
shutdownAndAwaitTermination
- Throws:
InterruptedException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-