public class ThreadUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
join(Duration maximumWaitTime,
java.lang.Iterable<? extends java.lang.Thread> threads) |
static void |
join(Duration maximumWaitTime,
java.lang.Thread... threads) |
static void |
join(Duration maximumWaitTime,
java.lang.Thread thread) |
static void |
join(java.lang.Iterable<? extends java.lang.Thread> threads) |
static void |
join(java.lang.Thread... threads) |
static void |
join(java.lang.Thread thread) |
static void |
joinSafe(Duration maximumWaitTime,
java.lang.Iterable<? extends java.lang.Thread> threads) |
static void |
joinSafe(Duration maximumWaitTime,
java.lang.Thread... threads) |
static void |
joinSafe(Duration maximumWaitTime,
java.lang.Thread thread) |
static void |
joinSafe(java.lang.Iterable<? extends java.lang.Thread> threads) |
static void |
joinSafe(java.lang.Thread... threads) |
static void |
joinSafe(java.lang.Thread thread) |
static void |
stop(java.lang.Iterable<? extends java.lang.Thread> threads) |
static void |
stop(java.lang.Thread... threads) |
static void |
stop(java.lang.Thread thread) |
public static void stop(@Nullable
java.lang.Thread thread)
public static void stop(@Nullable
java.lang.Iterable<? extends java.lang.Thread> threads)
public static void stop(@Nullable
java.lang.Thread... threads)
public static void join(@Nullable
Duration maximumWaitTime,
@Nullable
java.lang.Thread thread)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic static void join(@Nullable
Duration maximumWaitTime,
@Nullable
java.lang.Iterable<? extends java.lang.Thread> threads)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic static void join(@Nullable
Duration maximumWaitTime,
@Nullable
java.lang.Thread... threads)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic static void join(@Nullable
java.lang.Thread thread)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic static void join(@Nullable
java.lang.Iterable<? extends java.lang.Thread> threads)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic static void join(@Nullable
java.lang.Thread... threads)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic static void joinSafe(@Nullable
Duration maximumWaitTime,
@Nullable
java.lang.Thread thread)
throws GotInterruptedException
GotInterruptedExceptionpublic static void joinSafe(@Nullable
Duration maximumWaitTime,
@Nullable
java.lang.Iterable<? extends java.lang.Thread> threads)
throws GotInterruptedException
GotInterruptedExceptionpublic static void joinSafe(@Nullable
Duration maximumWaitTime,
@Nullable
java.lang.Thread... threads)
throws GotInterruptedException
GotInterruptedExceptionpublic static void joinSafe(@Nullable
java.lang.Thread thread)
throws GotInterruptedException
GotInterruptedExceptionpublic static void joinSafe(@Nullable
java.lang.Iterable<? extends java.lang.Thread> threads)
throws GotInterruptedException
GotInterruptedExceptionpublic static void joinSafe(@Nullable
java.lang.Thread... threads)
throws GotInterruptedException
GotInterruptedExceptionCopyright © 2013 echocat. All Rights Reserved.