public static enum BaseTestConsumer.TestWaitStrategy extends java.lang.Enum<BaseTestConsumer.TestWaitStrategy> implements java.lang.Runnable
BaseTestConsumer.awaitCount(int, Runnable)
.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(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract void run()
run
in interface java.lang.Runnable