Class SolrNamedThreadFactory

java.lang.Object
org.apache.solr.common.util.SolrNamedThreadFactory
All Implemented Interfaces:
ThreadFactory

public class SolrNamedThreadFactory extends Object implements ThreadFactory
A ThreadFactory that names threads with the given prefix.
  • Constructor Details

    • SolrNamedThreadFactory

      public SolrNamedThreadFactory(String namePrefix)
  • Method Details

    • getPoolName

      public String getPoolName()
      Returns the name prefix passed to the constructor as a pool name.
    • newThread

      public Thread newThread(Runnable r)
      Specified by:
      newThread in interface ThreadFactory