public enum Threads extends Enum<Threads>
| Modifier and Type | Method and Description |
|---|---|
static ExecutorService |
acquireExecutorService(String name,
int threads,
boolean daemon) |
static ScheduledExecutorService |
acquireScheduledExecutorService(String name,
boolean daemon) |
static void |
executorFactory(ExecutorFactory executorFactory) |
static void |
setThreadGroup(Thread thread,
ThreadGroup tg) |
static void |
shutdown(ExecutorService service) |
static void |
shutdown(ExecutorService service,
boolean daemon) |
static void |
shutdownDaemon(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 ExecutorService acquireExecutorService(String name, int threads, boolean daemon)
public static ScheduledExecutorService acquireScheduledExecutorService(String name, boolean daemon)
public static void executorFactory(ExecutorFactory executorFactory)
public 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 shutdownDaemon(@NotNull
ExecutorService service)
public static void shutdown(@NotNull
ExecutorService service,
boolean daemon)
public static void shutdown(@NotNull
ExecutorService service)
Copyright © 2019. All rights reserved.