
org.threadly.concurrent.ThreadRenamingExecutorWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of threadly Show documentation
Show all versions of threadly Show documentation
A library of tools to assist with safe concurrent java development. Providing a unique priority based thread pool, and ways to distrbute threaded work.
package org.threadly.concurrent;
import java.util.concurrent.Executor;
/**
* Class which wraps a {@link Executor} and wraps all supplied tasks in a
* {@link ThreadRenamingRunnableWrapper}. This allows you to make a pool where all tasks submitted
* inside it have the threads named in an identifiable way.
*
* @deprecated Moved to {@link org.threadly.concurrent.wrapper.traceability.ThreadRenamingExecutorWrapper}
*
* @author jent
* @since 4.3.0
*/
@Deprecated
public class ThreadRenamingExecutorWrapper
extends org.threadly.concurrent.wrapper.traceability.ThreadRenamingExecutorWrapper {
/**
* Constructs a new {@link ThreadRenamingExecutorWrapper}, wrapping a supplied {@link Executor}. If
* {@code replace} is {@code false} the thread will be named such that
* {@code threadName[originalThreadName]}.
*
* @param executor Executor to wrap and send executions to
* @param threadName Thread name prefix, or replaced name
* @param replace If {@code true} the original name wont be included in the thread name
*/
public ThreadRenamingExecutorWrapper(Executor executor, String threadName, boolean replace) {
super(executor, threadName, replace);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy