info.aduna.concurrent
Class ThreadUtil

java.lang.Object
  extended by info.aduna.concurrent.ThreadUtil

public class ThreadUtil
extends java.lang.Object

Thread-related utility methods.


Constructor Summary
ThreadUtil()
           
 
Method Summary
static void dumpAllStacks()
          Dumps the track traces of all live Threads to System.out.
static void dumpAllStacks(java.io.PrintStream stream)
          Dumps the track traces of all live Threads to the specified PrintStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadUtil

public ThreadUtil()
Method Detail

dumpAllStacks

public static void dumpAllStacks()
Dumps the track traces of all live Threads to System.out.


dumpAllStacks

public static void dumpAllStacks(java.io.PrintStream stream)
Dumps the track traces of all live Threads to the specified PrintStream.

Parameters:
stream - The PrintStream to which all stack traces will be written.


Copyright © 2010 Aduna. All Rights Reserved.