public class WithSingleStrictSubscriber<F,S> extends java.lang.Object implements FlowableWithSingleSubscriber<F,S>, org.reactivestreams.Subscription
Constructor and Description |
---|
WithSingleStrictSubscriber(@NotNull WithSingleSubscriber<F,S> subscriber) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
onComplete() |
void |
onError(@NotNull java.lang.Throwable throwable) |
void |
onNext(F f) |
void |
onSingle(S s)
Single item sent by the
PublisherWithSingle . |
void |
onSubscribe(@NotNull org.reactivestreams.Subscription subscription) |
void |
request(long n) |
public WithSingleStrictSubscriber(@NotNull @NotNull WithSingleSubscriber<F,S> subscriber)
public void onSubscribe(@NotNull @NotNull org.reactivestreams.Subscription subscription)
public void onSingle(@NotNull S s)
WithSingleSubscriber
PublisherWithSingle
.onSingle
in interface WithSingleSubscriber<F,S>
s
- the single item.public void onNext(@NotNull F f)
onNext
in interface org.reactivestreams.Subscriber<F>
public void onError(@NotNull @NotNull java.lang.Throwable throwable)
onError
in interface org.reactivestreams.Subscriber<F>
public void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<F>
public void request(long n)
request
in interface org.reactivestreams.Subscription
public void cancel()
cancel
in interface org.reactivestreams.Subscription