TestScheduler and allows
you to precisely time emissions and notifications to the Subject's subscribers using relative virtual time
controlled by the TestScheduler.
| Modifier and Type | Field and Description |
|---|---|
| private final Scheduler. | |
| private final SubjectSubscriptionManager |
| Access | Constructor and Description |
|---|---|
| protected | TestSubject(Observable.
|
| Modifier and Type | Method and Description |
|---|---|
| public static < the value type T> TestSubject | Returns: the newTestSubjecta scheduler)TestScheduler on which to operate this SubjectCreates and returns a new |
| public boolean | hasObservers()
Implements abstract rx. Subject has Observers subscribed to it.
|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| public void | onCompleted(long
the number of milliseconds in the future relative to "now()" at which to call delayTime)onCompletedSchedule a call to |
| public void | onError(final Throwable
the exception encountered by the Observable e)Implements rx. onError on TestScheduler.
|
| public void | |
| public void | onNext(T
the item emitted by the Observable v)Implements rx. onNext on TestScheduler.
|
| public void | onNext(final T
the item to emit v, long the number of milliseconds in the future relative to "now()" at which to call delayTime)onNextSchedule a call to |
| innerScheduler | back to summary |
|---|---|
| private final Scheduler. | |
| state | back to summary |
|---|---|
| private final SubjectSubscriptionManager<T> state | |
| TestSubject | back to summary |
|---|---|
| protected TestSubject(Observable. | |
| create | back to summary |
|---|---|
| public static <T> TestSubject Creates and returns a new
| |
| hasObservers | back to summary |
|---|---|
| public boolean hasObservers() Implements abstract rx. Doc from rx. Indicates whether the
| |
| internalOnCompleted | back to summary |
|---|---|
| pack-priv void internalOnCompleted() | |
| internalOnError | back to summary |
|---|---|
| pack-priv void internalOnError(final Throwable e) | |
| internalOnNext | back to summary |
|---|---|
| pack-priv void internalOnNext(T v) | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Schedule a call to
| |
| onCompleted | back to summary |
|---|---|
| public void onCompleted(long delayTime) Schedule a call to
| |
| onError | back to summary |
|---|---|
| public void onError(final Throwable e) Implements rx. Schedule a call to
| |
| onError | back to summary |
|---|---|
| public void onError(final Throwable e, long delayTime) Schedule a call to
| |
| onNext | back to summary |
|---|---|
| public void onNext(T v) Implements rx. Schedule a call to
| |
| onNext | back to summary |
|---|---|
| public void onNext(final T v, long delayTime) Schedule a call to
| |