public class EsThreadPoolExecutor
extends java.util.concurrent.ThreadPoolExecutor
| Modifier and Type | Class and Description |
|---|---|
static interface |
EsThreadPoolExecutor.ShutdownListener |
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(java.lang.Runnable command) |
void |
execute(java.lang.Runnable command) |
java.util.stream.Stream<java.lang.Runnable> |
getTasks()
Returns a stream of all pending tasks.
|
void |
shutdown(EsThreadPoolExecutor.ShutdownListener listener) |
protected void |
terminated() |
java.lang.String |
toString() |
protected java.lang.Runnable |
unwrap(java.lang.Runnable runnable) |
protected java.lang.Runnable |
wrapRunnable(java.lang.Runnable command) |
afterExecute, 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, shutdownNowpublic void shutdown(EsThreadPoolExecutor.ShutdownListener listener)
protected void terminated()
terminated in class java.util.concurrent.ThreadPoolExecutorpublic void execute(java.lang.Runnable command)
execute in interface java.util.concurrent.Executorexecute in class java.util.concurrent.ThreadPoolExecutorprotected void doExecute(java.lang.Runnable command)
public java.util.stream.Stream<java.lang.Runnable> getTasks()
ThreadPoolExecutor.getQueue() but will expose the originally submitted
Runnable instances rather than potentially wrapped ones.public java.lang.String toString()
toString in class java.util.concurrent.ThreadPoolExecutorprotected java.lang.Runnable wrapRunnable(java.lang.Runnable command)
protected java.lang.Runnable unwrap(java.lang.Runnable runnable)