public static enum

BaseTestConsumer.TestWaitStrategy

extends Enum<E extends Enum<E>>
implements Runnable
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ io.reactivex.observers.BaseTestConsumer.TestWaitStrategy

Class Overview

Enumeration of default wait strategies when waiting for a specific number of items in awaitCount(int, Runnable).

History: 2.0.7 - experimental

Summary

Enum Values
BaseTestConsumer.TestWaitStrategy  SLEEP_1000MS  The current thread sleeps for 1000 milliseconds. 
BaseTestConsumer.TestWaitStrategy  SLEEP_100MS  The current thread sleeps for 100 milliseconds. 
BaseTestConsumer.TestWaitStrategy  SLEEP_10MS  The current thread sleeps for 10 milliseconds. 
BaseTestConsumer.TestWaitStrategy  SLEEP_1MS  The current thread sleeps for 1 millisecond. 
BaseTestConsumer.TestWaitStrategy  SPIN  The wait loop will spin as fast as possible. 
BaseTestConsumer.TestWaitStrategy  YIELD  The current thread will be yielded. 
Public Methods
abstract void run()
static BaseTestConsumer.TestWaitStrategy valueOf(String name)
final static TestWaitStrategy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable
From interface java.lang.Runnable

Enum Values

public static final BaseTestConsumer.TestWaitStrategy SLEEP_1000MS

The current thread sleeps for 1000 milliseconds.

public static final BaseTestConsumer.TestWaitStrategy SLEEP_100MS

The current thread sleeps for 100 milliseconds.

public static final BaseTestConsumer.TestWaitStrategy SLEEP_10MS

The current thread sleeps for 10 milliseconds.

public static final BaseTestConsumer.TestWaitStrategy SLEEP_1MS

The current thread sleeps for 1 millisecond.

public static final BaseTestConsumer.TestWaitStrategy SPIN

The wait loop will spin as fast as possible.

public static final BaseTestConsumer.TestWaitStrategy YIELD

The current thread will be yielded.

Public Methods

public abstract void run ()

public static BaseTestConsumer.TestWaitStrategy valueOf (String name)

public static final TestWaitStrategy[] values ()