TcclThreadFactory (Apache Tomcat 8.5.57 API Documentation)

org.apache.catalina.tribes.util

## Class TcclThreadFactory

- java.lang.Object
- - org.apache.catalina.tribes.util.TcclThreadFactory

- All Implemented Interfaces:
    ThreadFactory

      public class TcclThreadFactory
      extends Object
      implements 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

    Constructors
    Constructor and Description
    `TcclThreadFactory()`
    `TcclThreadFactory(String namePrefix)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Thread` | `newThread(Runnable r)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TcclThreadFactory

          public TcclThreadFactory()

    - #### TcclThreadFactory

          public TcclThreadFactory(String namePrefix)

  - ### Method Detail

    - #### newThread

          public Thread newThread(Runnable r)

      Specified by:
        `newThread` in interface `ThreadFactory`

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.