public enum Threads extends Enum<Threads>
| Modifier and Type | Method and Description |
|---|---|
static void |
setThreadGroup(Thread thread,
ThreadGroup tg) |
static void |
shutdown(ExecutorService service) |
static String |
threadGroupPrefix() |
static Threads |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Threads[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <R,T extends Throwable> |
withThreadGroup(ThreadGroup tg,
net.openhft.chronicle.core.util.ThrowingCallable<R,T> callable) |
public static Threads[] values()
for (Threads c : Threads.values()) System.out.println(c);
public static Threads valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static <R,T extends Throwable> R withThreadGroup(ThreadGroup tg, @NotNull net.openhft.chronicle.core.util.ThrowingCallable<R,T> callable) throws T extends Throwable
T extends Throwablepublic static void setThreadGroup(Thread thread, ThreadGroup tg)
@NotNull public static String threadGroupPrefix()
public static void shutdown(@NotNull
ExecutorService service)
Copyright © 2018. All rights reserved.