Package org.apache.lucene.util
Class NamedThreadFactory
- java.lang.Object
 - 
- org.apache.lucene.util.NamedThreadFactory
 
 
- 
- All Implemented Interfaces:
 java.util.concurrent.ThreadFactory
public class NamedThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactoryA defaultThreadFactoryimplementation that accepts the name prefix of the created threads as a constructor argument. Otherwise, this factory yields the same semantics as the thread factory returned byExecutors.defaultThreadFactory(). 
- 
- 
Constructor Summary
Constructors Constructor Description NamedThreadFactory(java.lang.String threadNamePrefix)Creates a newNamedThreadFactoryinstance 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThreadnewThread(java.lang.Runnable r)Creates a newThread 
 - 
 
- 
- 
Constructor Detail
- 
NamedThreadFactory
public NamedThreadFactory(java.lang.String threadNamePrefix)
Creates a newNamedThreadFactoryinstance- Parameters:
 threadNamePrefix- the name prefix assigned to each thread created.
 
 - 
 
 -