public final class SynThreadPool extends ThreadPoolExecutor implements SynReportThrower
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
SynThreadPool(SynThreadReporter reporter,
int min,
int max,
String poolName) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable command) |
String |
getName() |
SynThreadFactory |
getThreadFactory() |
boolean |
isPool() |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic SynThreadPool(SynThreadReporter reporter, int min, int max, String poolName)
public final SynThreadFactory getThreadFactory()
getThreadFactory in class ThreadPoolExecutorpublic final String getName()
public final boolean isPool()
isPool in interface SynReportThrowerpublic void execute(Runnable command)
execute in interface Executorexecute in class ThreadPoolExecutorCopyright © 2021. All rights reserved.