Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SLEEP_INTERVAL_MS |
Constructor and Description |
---|
Threads() |
Modifier and Type | Method and Description |
---|---|
static boolean |
oneAlive(Thread[] threads) |
static void |
terminate(Thread[] threads) |
static boolean |
waitForCompletion(Thread[] threads) |
static boolean |
waitForCompletion(Thread[] threads,
int maxWaitMillis) |
static boolean |
waitForCompletion(Thread[] threads,
int maxWaitMillis,
int sleepPeriodMillis) |
public static final int DEFAULT_SLEEP_INTERVAL_MS
public static boolean oneAlive(Thread[] threads)
public static void terminate(Thread[] threads)
public static boolean waitForCompletion(Thread[] threads)
public static boolean waitForCompletion(Thread[] threads, int maxWaitMillis)
public static boolean waitForCompletion(Thread[] threads, int maxWaitMillis, int sleepPeriodMillis)
Copyright © 2012–2021. All rights reserved.