public class ExecutorAdapter extends ThreadPoolExecutor implements IExecutor
IExecutor based on ThreadPoolExecutorThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
ExecutorAdapter(int threadCount,
IThreadFactory tf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout) |
StackTraceElement[][] |
getStackTraces() |
void |
stopNow() |
IFutureResult |
submitRunnable(Runnable runnable) |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, 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, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic ExecutorAdapter(int threadCount,
IThreadFactory tf)
public IFutureResult submitRunnable(Runnable runnable)
submitRunnable in interface IExecutorpublic boolean awaitTermination(long timeout)
awaitTermination in interface IExecutorpublic StackTraceElement[][] getStackTraces()
getStackTraces in interface IExecutorCopyright © 2024. All rights reserved.