public final class Threads extends Object
| 构造器和说明 |
|---|
Threads() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
interruptIfNecessary(Throwable t) |
static boolean |
isStopped(Thread thread)
Returns the thread is whether stopped
|
static boolean |
stopThread(Thread thread,
int sleepCount,
long sleepMillis,
long joinMillis)
Stop the thread, and return boolean result of has called java.lang.Thread#stop()
|
public static boolean isStopped(Thread thread)
thread - the threadtrue if the thread is stoppedpublic static boolean stopThread(Thread thread, int sleepCount, long sleepMillis, long joinMillis)
thread - the threadsleepCount - the sleepCountsleepMillis - the sleepMillisjoinMillis - the joinMillistrue if called java.lang.Thread#stop()public static void interruptIfNecessary(Throwable t)
Copyright © 2023. All rights reserved.