public NamePreservingRunnable(Runnable runnable,
String newName)
Creates a new instance of NamePreservingRunnable.
Parameters:
runnable - The underlying runnable
newName - The runnable's name
Method Detail
run
public void run()
Run the runnable after having renamed the current thread's name
to the new name. When the runnable has completed, set back the
current thread name back to its origin.