public class

NamedThreadFactory

extends Object
implements ThreadFactory
java.lang.Object
   ↳ org.apache.lucene.util.NamedThreadFactory

Class Overview

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 defaultThreadFactory().

Summary

Public Constructors
NamedThreadFactory(String threadNamePrefix)
Creates a new NamedThreadFactory instance
Public Methods
Thread newThread(Runnable r)
Creates a new Thread
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.concurrent.ThreadFactory

Public Constructors

public NamedThreadFactory (String threadNamePrefix)

Creates a new NamedThreadFactory instance

Parameters
threadNamePrefix the name prefix assigned to each thread created.

Public Methods

public Thread newThread (Runnable r)

Creates a new Thread