public class ThreadRenamingExecutor extends AbstractSubmitterExecutor
Executor and wraps all supplied tasks in a
ThreadRenamingRunnable. This allows you to make a pool where all tasks submitted
inside it have the threads named in an identifiable way.| Constructor and Description |
|---|
ThreadRenamingExecutor(java.util.concurrent.Executor executor,
java.lang.String threadName,
boolean replace)
Constructs a new
ThreadRenamingExecutor, wrapping a supplied Executor. |
execute, submit, submitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsubmitpublic ThreadRenamingExecutor(java.util.concurrent.Executor executor,
java.lang.String threadName,
boolean replace)
ThreadRenamingExecutor, wrapping a supplied Executor. If
replace is false the thread will be named such that
threadName[originalThreadName].executor - Executor to wrap and send executions tothreadName - Thread name prefix, or replaced namereplace - If true the original name wont be included in the thread name