Class TcclThreadFactory
java.lang.Object
org.apache.catalina.tribes.util.TcclThreadFactory
- All Implemented Interfaces:
ThreadFactory
ThreadFactory implementation that creates threads with the thread context class loader set to the class loader that
loaded this factory. It is intended to be used when tasks may be passed to executors when the web application class
loader is set as the thread context class loader, such as in async session replication.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TcclThreadFactory with an auto-generated name prefix.TcclThreadFactory(String namePrefix) Creates a new TcclThreadFactory with the specified name prefix. -
Method Summary
-
Constructor Details
-
TcclThreadFactory
public TcclThreadFactory()Creates a new TcclThreadFactory with an auto-generated name prefix. -
TcclThreadFactory
Creates a new TcclThreadFactory with the specified name prefix.- Parameters:
namePrefix- the prefix for thread names
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-