com.google.code.tempusfugit.concurrency
Class InterruptCapturingThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.google.code.tempusfugit.concurrency.InterruptCapturingThread
All Implemented Interfaces:
Runnable

public class InterruptCapturingThread
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
InterruptCapturingThread()
           
InterruptCapturingThread(Runnable runnable)
           
InterruptCapturingThread(Runnable runnable, String name)
           
InterruptCapturingThread(String name)
           
InterruptCapturingThread(ThreadGroup threadGroup, Runnable runnable)
           
InterruptCapturingThread(ThreadGroup threadGroup, Runnable runnable, String name)
           
InterruptCapturingThread(ThreadGroup threadGroup, Runnable runnable, String name, long stackSize)
           
InterruptCapturingThread(ThreadGroup threadGroup, String name)
           
 
Method Summary
 List<StackTraceElement[]> getInterrupters()
           
 void interrupt()
           
 void printStackTraceOfInterruptingThreads(PrintStream out)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterruptCapturingThread

public InterruptCapturingThread()

InterruptCapturingThread

public InterruptCapturingThread(Runnable runnable)

InterruptCapturingThread

public InterruptCapturingThread(ThreadGroup threadGroup,
                                Runnable runnable)

InterruptCapturingThread

public InterruptCapturingThread(String name)

InterruptCapturingThread

public InterruptCapturingThread(ThreadGroup threadGroup,
                                String name)

InterruptCapturingThread

public InterruptCapturingThread(Runnable runnable,
                                String name)

InterruptCapturingThread

public InterruptCapturingThread(ThreadGroup threadGroup,
                                Runnable runnable,
                                String name)

InterruptCapturingThread

public InterruptCapturingThread(ThreadGroup threadGroup,
                                Runnable runnable,
                                String name,
                                long stackSize)
Method Detail

interrupt

public void interrupt()
Overrides:
interrupt in class Thread

getInterrupters

public List<StackTraceElement[]> getInterrupters()

printStackTraceOfInterruptingThreads

public void printStackTraceOfInterruptingThreads(PrintStream out)


Copyright © 2009-2012 tempus-fugit committers. All Rights Reserved.