Class NamePreservingRunnable

java.lang.Object
org.apache.mina.util.NamePreservingRunnable
All Implemented Interfaces:
Runnable

public class NamePreservingRunnable extends Object implements Runnable
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 Details

    • NamePreservingRunnable

      public NamePreservingRunnable(Runnable runnable, String newName)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable