IExecutorpublic class ExecutorAdapter extends java.util.concurrent.ThreadPoolExecutor implements IExecutor
IExecutor based on ThreadPoolExecutorjava.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Constructor | Description |
|---|---|
ExecutorAdapter(int threadCount,
IThreadFactory tf) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
awaitTermination(long timeout) |
|
java.lang.StackTraceElement[][] |
getStackTraces() |
|
void |
stopNow() |
|
IFutureResult |
submitRunnable(java.lang.Runnable runnable) |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitafterExecute, 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, toStringpublic ExecutorAdapter(int threadCount,
IThreadFactory tf)
public IFutureResult submitRunnable(java.lang.Runnable runnable)
submitRunnable in interface IExecutorpublic boolean awaitTermination(long timeout)
awaitTermination in interface IExecutorpublic java.lang.StackTraceElement[][] getStackTraces()
getStackTraces in interface IExecutor