public final class Threads extends Object
Modifier and Type | Field and Description |
---|---|
static Thread[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
static void |
dumpToPrintStream(PrintStream stream) |
static StackTraceElement[][] |
getStackTraces(Thread... threads) |
static Thread[] |
getThreads() |
static int |
randomFirst(int nr,
Thread[] threads)
get a random selection of nr Threads from the array, the first nr location in the array will
contain the random set,m the rest will be null.
|
public static final Thread[] EMPTY_ARRAY
public static Thread[] getThreads()
public static int randomFirst(int nr, Thread[] threads)
nr
- number of threads to randomly select.threads
- the array of threads to select frompublic static StackTraceElement[][] getStackTraces(Thread... threads)
public static void dumpToPrintStream(PrintStream stream)
Copyright © 2018 SPF4J. All rights reserved.