protected static class MigrationServiceImpl.MigrationThreadPoolExecutor extends ThreadPoolExecutor
Runnable
s to be able to request shutdown on them.ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
Modifier and Type | Field and Description |
---|---|
protected List<MigrationServiceImpl.MigratorWithContext> |
runnables |
Constructor and Description |
---|
MigrationThreadPoolExecutor() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterExecute(Runnable runnable,
Throwable t) |
protected void |
beforeExecute(Thread thread,
Runnable runnable) |
void |
requestShutdown() |
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
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
protected final List<MigrationServiceImpl.MigratorWithContext> runnables
public MigrationThreadPoolExecutor()
protected void beforeExecute(Thread thread, Runnable runnable)
beforeExecute
in class ThreadPoolExecutor
protected void afterExecute(Runnable runnable, Throwable t)
afterExecute
in class ThreadPoolExecutor
public void requestShutdown()
Copyright © 2018 Nuxeo. All rights reserved.