Class NamePreservingRunnable

  • All Implemented Interfaces:
    java.lang.Runnable

    public class NamePreservingRunnable
    extends java.lang.Object
    implements java.lang.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 Summary

      Constructors 
      Constructor Description
      NamePreservingRunnable​(java.lang.Runnable runnable, java.lang.String newName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamePreservingRunnable

        public NamePreservingRunnable​(java.lang.Runnable runnable,
                                      java.lang.String newName)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable