public enum ThreadUtil extends Enum<ThreadUtil>
This enum class is used as a utility and does not have any instances.
| Modifier and Type | Method and Description |
|---|---|
static void |
pause(long timeInMillis)
Pauses the current thread's execution for the specified amount of time.
|
static ThreadUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ThreadUtil[] values()
for (ThreadUtil c : ThreadUtil.values()) System.out.println(c);
public static ThreadUtil 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 void pause(long timeInMillis)
This method is intended to provide similar functionality to Jvm.pause(...) but does not depend on chronicle-core.
timeInMillis - The amount of time to pause for in milliseconds.Copyright © 2024. All rights reserved.