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.)| Constructor and Description |
|---|
NamePreservingRunnable(java.lang.Runnable runnable,
java.lang.String newName)
Creates a new instance of NamePreservingRunnable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Run the runnable after having renamed the current thread's name
to the new name.
|