Class BlockingObservableMostRecent.MostRecentObserver<T>
java.lang.Object
io.reactivex.rxjava3.observers.DefaultObserver<T>
io.reactivex.rxjava3.internal.operators.observable.BlockingObservableMostRecent.MostRecentObserver<T>
- All Implemented Interfaces:
Observer<T>
- Enclosing class:
BlockingObservableMostRecent<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheBlockingObservableMostRecent.MostRecentObserver<T>.MostRecentIteratorreturn is not thread safe.voidNotifies theObserverthat theObservablehas finished sending push-based notifications.voidNotifies theObserverthat theObservablehas experienced an error condition.voidProvides theObserverwith a new item to observe.Methods inherited from class io.reactivex.rxjava3.observers.DefaultObserver
cancel, onStart, onSubscribe
-
Field Details
-
value
-
-
Constructor Details
-
MostRecentObserver
MostRecentObserver(T value)
-
-
Method Details
-
onComplete
public void onComplete()Description copied from interface:ObserverNotifies theObserverthat theObservablehas finished sending push-based notifications.The
Observablewill not call this method if it callsObserver.onError(java.lang.Throwable). -
onError
Description copied from interface:ObserverNotifies theObserverthat theObservablehas experienced an error condition.If the
Observablecalls this method, it will not thereafter callObserver.onNext(T)orObserver.onComplete().- Parameters:
e- the exception encountered by the Observable
-
onNext
Description copied from interface:ObserverProvides theObserverwith a new item to observe.The
Observablemay call this method 0 or more times.The
Observablewill not call this method again after it calls eitherObserver.onComplete()orObserver.onError(java.lang.Throwable).- Parameters:
args- the item emitted by the Observable
-
getIterable
TheBlockingObservableMostRecent.MostRecentObserver<T>.MostRecentIteratorreturn is not thread safe. In other words don't callBlockingObservableMostRecent.MostRecentObserver.MostRecentIterator.hasNext()in one thread expectBlockingObservableMostRecent.MostRecentObserver.MostRecentIterator.next()called from a different thread to work.- Returns:
- the Iterator
-