public class NamePreservingRunnable extends Object implements Runnable
Runnable
wrapper that preserves the name of the thread after the runnable is
complete (for Runnable
s that change the name of the Thread they use.)Constructor and Description |
---|
NamePreservingRunnable(Runnable runnable,
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.
|
public NamePreservingRunnable(Runnable runnable, String newName)
runnable
- The underlying runnablenewName
- The runnable's nameCopyright © 2004–2016 Apache MINA Project. All rights reserved.