java.util.concurrent.Executor, java.util.concurrent.ExecutorServicePrioritizedEsThreadPoolExecutor, QueueResizingEsThreadPoolExecutorpublic class EsThreadPoolExecutor
extends java.util.concurrent.ThreadPoolExecutor
| Modifier and Type | Class | 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 | Description |
|---|---|---|
protected void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t) |
|
protected void |
appendThreadPoolExecutorDetails(java.lang.StringBuilder sb) |
Append details about this thread pool to the specified
StringBuilder. |
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) |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitallowCoreThreadTimeOut, 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)
protected void afterExecute(java.lang.Runnable r,
java.lang.Throwable t)
afterExecute in class java.util.concurrent.ThreadPoolExecutorpublic java.util.stream.Stream<java.lang.Runnable> getTasks()
ThreadPoolExecutor.getQueue() but will expose the originally submitted
Runnable instances rather than potentially wrapped ones.public final java.lang.String toString()
toString in class java.util.concurrent.ThreadPoolExecutorprotected void appendThreadPoolExecutorDetails(java.lang.StringBuilder sb)
StringBuilder. All details should be appended as key/value pairs in
the form "%s = %s, "sb - the StringBuilder to append toprotected java.lang.Runnable wrapRunnable(java.lang.Runnable command)
protected java.lang.Runnable unwrap(java.lang.Runnable runnable)