|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.util.NamePreservingRunnable
public class NamePreservingRunnable
A 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 Summary | |
|---|---|
NamePreservingRunnable(java.lang.Runnable runnable,
java.lang.String newName)
Creates a new instance of NamePreservingRunnable. |
|
| Method Summary | |
|---|---|
void |
run()
Run the runnable after having renamed the current thread's name to the new name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamePreservingRunnable(java.lang.Runnable runnable,
java.lang.String newName)
runnable - The underlying runnablenewName - The runnable's name| Method Detail |
|---|
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||