public class NamePreservingRunnable extends java.lang.Object implements java.lang.Runnable
Runnablewrapper 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|
Creates a new instance of NamePreservingRunnable.
|Modifier and Type||Method and Description|
Run the runnable after having renamed the current thread's name to the new name.
public NamePreservingRunnable(java.lang.Runnable runnable, java.lang.String newName)
runnable- The underlying runnable
newName- The runnable's name
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.