Top Description Inners Fields Constructors Methods
io.reactivex.rxjava3.internal.operators.flowable

public final Class FlowableConcatWithSingle<T>

extends AbstractFlowableWithUpstream<T, T>
Class Inheritance
Type Parameters
<T>
the element type of the main source and output type
Imports
java.util.concurrent.atomic.AtomicReference, org.reactivestreams.Subscriber, io.reactivex.rxjava3.core.*, io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.internal.disposables.DisposableHelper, io.reactivex.rxjava3.internal.subscribers.SinglePostCompleteSubscriber, io.reactivex.rxjava3.internal.subscriptions.SubscriptionHelper

Subscribe to a main Flowable first, then when it completes normally, subscribe to a Single, signal its success value followed by a completion or signal its error as is.

History: 2.1.10 - experimental

Since
2.2

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final SingleSource<? extends T>
Inherited from io.reactivex.rxjava3.internal.operators.flowable.AbstractFlowableWithUpstream:
source

Constructor Summary

AccessConstructor and Description
public
FlowableConcatWithSingle(Flowable<T> source, SingleSource<? extends T> other)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from io.reactivex.rxjava3.internal.operators.flowable.AbstractFlowableWithUpstream:
source

Field Detail

otherback to summary
pack-priv final SingleSource<? extends T> other

Constructor Detail

FlowableConcatWithSingleback to summary
public FlowableConcatWithSingle(Flowable<T> source, SingleSource<? extends T> other)

Method Detail

subscribeActualback to summary
protected void subscribeActual(Subscriber<? super T> s)
Annotations
@Override
io.reactivex.rxjava3.internal.operators.flowable back to summary

pack-priv final Class FlowableConcatWithSingle.ConcatWithSubscriber<T>

extends SinglePostCompleteSubscriber<T, T>
implements SingleObserver<T>
Class Inheritance
All Implemented Interfaces
io.reactivex.rxjava3.core.SingleObserver

Field Summary

Modifier and TypeField and Description
pack-priv SingleSource<? extends T>
pack-priv final AtomicReference<Disposable>
private static final long
Inherited from io.reactivex.rxjava3.internal.subscribers.SinglePostCompleteSubscriber:
downstreamproducedupstreamvalue

Constructor Summary

AccessConstructor and Description
pack-priv
ConcatWithSubscriber(Subscriber<? super T> actual, SingleSource<? extends T> other)

Method Summary

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

Implements org.reactivestreams.Subscriber.onComplete.

Successful terminal state.
public void
onError(Throwable
the throwable signaled
t
)

Implements org.reactivestreams.Subscriber.onError.

Failed 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).
public void
public void
onSuccess(T
the item emitted by the Single
t
)

Implements io.reactivex.rxjava3.core.SingleObserver.onSuccess.

Notifies the SingleObserver with a single item and that the Single has finished sending push-based notifications.
Inherited from io.reactivex.rxjava3.internal.subscribers.SinglePostCompleteSubscriber:
completeonDroponSubscriberequest

Field Detail

otherback to summary
pack-priv SingleSource<? extends T> other
otherDisposableback to summary
pack-priv final AtomicReference<Disposable> otherDisposable
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.reactivex.rxjava3.internal.subscribers.SinglePostCompleteSubscriber.serialVersionUID.

Constructor Detail

ConcatWithSubscriberback to summary
pack-priv ConcatWithSubscriber(Subscriber<? super T> actual, SingleSource<? extends T> other)

Method Detail

cancelback to summary
public void cancel()

Overrides io.reactivex.rxjava3.internal.subscribers.SinglePostCompleteSubscriber.cancel.

Implements org.reactivestreams.Subscription.cancel.

Doc from org.reactivestreams.Subscription.cancel.

Request the Publisher to stop sending data and clean up resources.

Data may still be sent to meet previously signalled demand after calling cancel.

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
onErrorback to summary
public void onError(Throwable t)

Implements org.reactivestreams.Subscriber.onError.

Doc from org.reactivestreams.Subscriber.onError.

Failed terminal state.

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

Parameters
t:Throwable

the throwable signaled

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
onSubscribeback to summary
public void onSubscribe(Disposable d)
Annotations
@Override
onSuccessback to summary
public void onSuccess(T t)

Implements io.reactivex.rxjava3.core.SingleObserver.onSuccess.

Doc from io.reactivex.rxjava3.core.SingleObserver.onSuccess.

Notifies the SingleObserver with a single item and that the Single has finished sending push-based notifications.

The Single will not call this method if it calls onError.

Parameters
t:T

the item emitted by the Single

Annotations
@Override