public class ThreadPoolExecutorNotifier
extends java.util.concurrent.ThreadPoolExecutor
Modifier and Type | Class and Description |
---|---|
class |
ThreadPoolExecutorNotifier.CallerRunner |
static class |
ThreadPoolExecutorNotifier.ClassLoaderThreadFactory |
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
Constructor and Description |
---|
ThreadPoolExecutorNotifier(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue,
java.lang.ClassLoader classLoader) |
ThreadPoolExecutorNotifier(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue,
java.lang.ClassLoader classLoader,
java.util.concurrent.ThreadFactory threadFactory) |
Modifier and Type | Method and Description |
---|---|
void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t) |
void |
execute(java.lang.Runnable r) |
void |
waitJobsCompleted() |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, 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
public ThreadPoolExecutorNotifier(int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue, java.lang.ClassLoader classLoader)
public ThreadPoolExecutorNotifier(int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue, java.lang.ClassLoader classLoader, java.util.concurrent.ThreadFactory threadFactory)
public void execute(java.lang.Runnable r)
execute
in interface java.util.concurrent.Executor
execute
in class java.util.concurrent.ThreadPoolExecutor
public void afterExecute(java.lang.Runnable r, java.lang.Throwable t)
afterExecute
in class java.util.concurrent.ThreadPoolExecutor
public void waitJobsCompleted() throws java.lang.Exception
java.lang.Exception
Copyright © 2013 Dassault Systèmes, All Rights Reserved.