public static enum SleepyTrainingListener.SleepMode extends Enum<SleepyTrainingListener.SleepMode>
| Enum Constant and Description |
|---|
BUSY
Busy-lock will be used, to guarantee 100% thread use
|
PARK
In this mode parkNanos() call will be used, to make process really idle
|
SLEEP
In this mode Thread.sleep() call will be used, to make sleep traceable via profiler
|
| Modifier and Type | Method and Description |
|---|---|
static SleepyTrainingListener.SleepMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SleepyTrainingListener.SleepMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SleepyTrainingListener.SleepMode PARK
public static final SleepyTrainingListener.SleepMode SLEEP
public static final SleepyTrainingListener.SleepMode BUSY
public static SleepyTrainingListener.SleepMode[] values()
for (SleepyTrainingListener.SleepMode c : SleepyTrainingListener.SleepMode.values()) System.out.println(c);
public static SleepyTrainingListener.SleepMode 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 nullCopyright © 2018. All rights reserved.