Top Description Fields Constructors Methods
io.reactivex.rxjava3.internal.jdk8

public final Class FlowableSingleStageSubscriber<T>

extends FlowableStageSubscriber<T>
Class Inheritance
Type Parameters
<T>
the element type
Imports
java.util.NoSuchElementException, org.reactivestreams.Subscription

Signals the only element of the source via the underlying CompletableFuture, signals the a default item if the upstream is empty or signals IllegalArgumentException if the upstream has more than one item.
Since
3.0.0

Field Summary

Modifier and TypeField and Description
pack-priv final T
pack-priv final boolean
Inherited from io.reactivex.rxjava3.internal.jdk8.FlowableStageSubscriber:
upstreamvalue

Constructor Summary

AccessConstructor and Description
public
FlowableSingleStageSubscriber(boolean hasDefault, T defaultItem)

Method Summary

Modifier and TypeMethod and Description
protected void
public void
onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Successful terminal state.
public void
onNext(T
the element signaled
t
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
Inherited from io.reactivex.rxjava3.internal.jdk8.FlowableStageSubscriber:
cancelcancelUpstreamclearcompletecompleteExceptionallyonErroronSubscribe

Field Detail

defaultItemback to summary
pack-priv final T defaultItem
hasDefaultback to summary
pack-priv final boolean hasDefault

Constructor Detail

FlowableSingleStageSubscriberback to summary
public FlowableSingleStageSubscriber(boolean hasDefault, T defaultItem)

Method Detail

afterSubscribeback to summary
protected void afterSubscribe(Subscription s)

Implements abstract io.reactivex.rxjava3.internal.jdk8.FlowableStageSubscriber.afterSubscribe.

Annotations
@Override
onCompleteback to summary
public void onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Doc from org.reactivestreams.Subscriber.onComplete.

Successful terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Annotations
@Override
onNextback to summary
public void onNext(T t)

Implements org.reactivestreams.Subscriber.onNext.

Doc from org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).

Parameters
t:T

the element signaled

Annotations
@Override