public static enum BaseTestConsumer.TestWaitStrategy extends Enum<BaseTestConsumer.TestWaitStrategy> implements Runnable
BaseTestConsumer.awaitCount(int, Runnable)
.
History: 2.0.7 - experimental
Enum Constant and Description |
---|
SLEEP_1000MS
The current thread sleeps for 1000 milliseconds.
|
SLEEP_100MS
The current thread sleeps for 100 milliseconds.
|
SLEEP_10MS
The current thread sleeps for 10 milliseconds.
|
SLEEP_1MS
The current thread sleeps for 1 millisecond.
|
SPIN
The wait loop will spin as fast as possible.
|
YIELD
The current thread will be yielded.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
run() |
static BaseTestConsumer.TestWaitStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseTestConsumer.TestWaitStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseTestConsumer.TestWaitStrategy SPIN
public static final BaseTestConsumer.TestWaitStrategy YIELD
public static final BaseTestConsumer.TestWaitStrategy SLEEP_1MS
public static final BaseTestConsumer.TestWaitStrategy SLEEP_10MS
public static final BaseTestConsumer.TestWaitStrategy SLEEP_100MS
public static final BaseTestConsumer.TestWaitStrategy SLEEP_1000MS
public static BaseTestConsumer.TestWaitStrategy[] values()
for (BaseTestConsumer.TestWaitStrategy c : BaseTestConsumer.TestWaitStrategy.values()) System.out.println(c);
public static BaseTestConsumer.TestWaitStrategy 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 null