C# Class Lucene.Net.Util.NamedThreadFactory

A default ThreadFactory implementation 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 by Executors#defaultThreadFactory().
Inheritance: Lucene.Net.Support.ThreadFactory
Show file Open project: apache/lucenenet

Public Methods

Method Description
NamedThreadFactory ( string threadNamePrefix ) : Lucene.Net.Support

Creates a new NamedThreadFactory instance

NewThread ( IThreadRunnable r ) : Thread

Creates a new Thread

Private Methods

Method Description
CheckPrefix ( string prefix ) : string

Method Details

NamedThreadFactory() public method

Creates a new NamedThreadFactory instance
public NamedThreadFactory ( string threadNamePrefix ) : Lucene.Net.Support
threadNamePrefix string the name prefix assigned to each thread created.
return Lucene.Net.Support

NewThread() public method

Creates a new Thread
public NewThread ( IThreadRunnable r ) : Thread
r IThreadRunnable
return System.Threading.Thread