public class BackpressureReducingObserver<T,M> extends PassthroughObserver<T,M>
| Constructor and Description |
|---|
BackpressureReducingObserver(Observer<? super M> downstreamObserver,
java.util.function.Function<? super T,? extends M> initial,
java.util.function.BiFunction<? super M,? super T,? extends M> accumulator) |
BackpressureReducingObserver(Observer<? super M> downstreamObserver,
java.util.function.Supplier<? extends M> identity,
java.util.function.BiFunction<? super M,? super T,? extends M> accumulator) |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete() |
void |
onFail(java.lang.Throwable t) |
void |
onNext(T message)
The method which will receive notification from an
Observable. |
void |
onObserve(Observation observation) |
getDownstreamObserver, getObservation, initializeObservationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonCompletion, onFailure, onObservation, singleUsepublic BackpressureReducingObserver(Observer<? super M> downstreamObserver, java.util.function.Supplier<? extends M> identity, java.util.function.BiFunction<? super M,? super T,? extends M> accumulator)
public void onObserve(Observation observation)
public void onNext(T message)
ObserverObservable.public void onComplete()
onComplete in interface Observer<T>onComplete in class PassthroughObserver<T,M>