|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.NamedThreadFactory
public class 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().
| Constructor Summary | |
|---|---|
NamedThreadFactory(java.lang.String threadNamePrefix)
Creates a new NamedThreadFactory instance |
|
| Method Summary | |
|---|---|
java.lang.Thread |
newThread(java.lang.Runnable r)
Creates a new Thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedThreadFactory(java.lang.String threadNamePrefix)
NamedThreadFactory instance
threadNamePrefix - the name prefix assigned to each thread created.| Method Detail |
|---|
public java.lang.Thread newThread(java.lang.Runnable r)
Thread
newThread in interface java.util.concurrent.ThreadFactoryThreadFactory.newThread(java.lang.Runnable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||