public class NamePreservingRunnable
extends java.lang.Object
implements java.lang.Runnable
Runnable wrapper that preserves the name of the thread after the runnable is
complete (for Runnables that change the name of the Thread they use.)| 构造器和说明 |
|---|
NamePreservingRunnable(java.lang.Runnable runnable,
java.lang.String newName)
Creates a new instance of NamePreservingRunnable.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
run()
Run the runnable after having renamed the current thread's name
to the new name.
|