Class DebuggableThread

java.lang.Object
java.lang.Thread
org.jppf.utils.concurrent.DebuggableThread
All Implemented Interfaces:
Runnable

public class DebuggableThread extends Thread
A thread that prints out the call stack when interrupt() is called.
  • Constructor Details

    • DebuggableThread

      public DebuggableThread(String name)
      Construct this thread.
      Parameters:
      name - the name of this thread.
    • DebuggableThread

      public DebuggableThread(Runnable target)
      Construct this thread.
      Parameters:
      target - the associate Runnable.
    • DebuggableThread

      public DebuggableThread(Runnable target, String name)
      Construct this thread.
      Parameters:
      target - the associate Runnable.
      name - the name of this thread.
    • DebuggableThread

      public DebuggableThread(ThreadGroup group, Runnable target, String name)
      Construct this thread.
      Parameters:
      group - the thread group owning this thread.
      target - the associate Runnable.
      name - the name of this thread.
  • Method Details

    • interrupt

      public void interrupt()
      Overrides:
      interrupt in class Thread