public enum ThreadMonitors extends Enum<ThreadMonitors>
| Modifier and Type | Method and Description |
|---|---|
static ThreadMonitor |
forServices(String description,
long timeLimit,
LongSupplier timeSupplier,
Supplier<Thread> threadSupplier) |
static ThreadMonitor |
forServices(String description,
long timeLimit,
LongSupplier timeSupplier,
Supplier<Thread> threadSupplier,
BooleanSupplier logEnabled,
Consumer<String> logConsumer) |
static ThreadMonitor |
forThread(String description,
long timeLimit,
LongSupplier timeSupplier,
Supplier<Thread> threadSupplier) |
static ThreadMonitor |
forThread(String description,
long timeLimit,
LongSupplier timeSupplier,
Supplier<Thread> threadSupplier,
BooleanSupplier logEnabled,
Consumer<String> logConsumer) |
static ThreadMonitors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadMonitors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ThreadMonitors[] values()
for (ThreadMonitors c : ThreadMonitors.values()) System.out.println(c);
public static ThreadMonitors 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 ThreadMonitor forThread(String description, long timeLimit, LongSupplier timeSupplier, Supplier<Thread> threadSupplier)
public static ThreadMonitor forThread(String description, long timeLimit, LongSupplier timeSupplier, Supplier<Thread> threadSupplier, BooleanSupplier logEnabled, Consumer<String> logConsumer)
public static ThreadMonitor forServices(String description, long timeLimit, LongSupplier timeSupplier, Supplier<Thread> threadSupplier)
public static ThreadMonitor forServices(String description, long timeLimit, LongSupplier timeSupplier, Supplier<Thread> threadSupplier, BooleanSupplier logEnabled, Consumer<String> logConsumer)
Copyright © 2024. All rights reserved.