public class SimpleSubscriber<T> extends Object implements org.reactivestreams.Subscriber<T>
| Constructor and Description |
|---|
SimpleSubscriber() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
取消
|
SimpleSubscriber<T> |
doOnComplete(Runnable doOnComplete) |
SimpleSubscriber<T> |
doOnError(Consumer<Throwable> doOnError) |
SimpleSubscriber<T> |
doOnNext(Consumer<T> doOnNext) |
SimpleSubscriber<T> |
doOnNext(Function<T,Boolean> doOnNext)
往下时(可控制取消)
|
SimpleSubscriber<T> |
doOnSubscribe(Consumer<org.reactivestreams.Subscription> doOnSubscribe) |
void |
onComplete() |
void |
onError(Throwable throwable) |
void |
onNext(T item) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
public SimpleSubscriber<T> doOnSubscribe(Consumer<org.reactivestreams.Subscription> doOnSubscribe)
public SimpleSubscriber<T> doOnNext(Function<T,Boolean> doOnNext)
public SimpleSubscriber<T> doOnNext(Consumer<T> doOnNext)
public SimpleSubscriber<T> doOnError(Consumer<Throwable> doOnError)
public SimpleSubscriber<T> doOnComplete(Runnable doOnComplete)
public void cancel()
public void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface org.reactivestreams.Subscriber<T>public void onNext(T item)
onNext in interface org.reactivestreams.Subscriber<T>public void onError(Throwable throwable)
onError in interface org.reactivestreams.Subscriber<T>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<T>Copyright © 2025. All rights reserved.