Package org.nuxeo.runtime.migration
Class MigrationServiceImpl.MigrationThreadPoolExecutor
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- java.util.concurrent.ThreadPoolExecutor
-
- org.nuxeo.runtime.migration.MigrationServiceImpl.MigrationThreadPoolExecutor
-
- All Implemented Interfaces:
Executor,ExecutorService
- Enclosing class:
- MigrationServiceImpl
protected static class MigrationServiceImpl.MigrationThreadPoolExecutor extends ThreadPoolExecutor
Thread pool executor that recordsRunnables to be able to request shutdown on them.- Since:
- 9.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
-
Field Summary
Fields Modifier and Type Field Description protected List<MigrationServiceImpl.MigratorWithContext>runnables
-
Constructor Summary
Constructors Constructor Description MigrationThreadPoolExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterExecute(Runnable runnable, Throwable t)protected voidbeforeExecute(Thread thread, Runnable runnable)voidrequestShutdown()-
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toString
-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
-
-
-
Field Detail
-
runnables
protected final List<MigrationServiceImpl.MigratorWithContext> runnables
-
-
Method Detail
-
beforeExecute
protected void beforeExecute(Thread thread, Runnable runnable)
- Overrides:
beforeExecutein classThreadPoolExecutor
-
afterExecute
protected void afterExecute(Runnable runnable, Throwable t)
- Overrides:
afterExecutein classThreadPoolExecutor
-
requestShutdown
public void requestShutdown()
-
-