Class FlowableConcatWithSingle.ConcatWithSubscriber<T>

java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicLong
io.reactivex.rxjava3.internal.subscribers.SinglePostCompleteSubscriber<T,T>
io.reactivex.rxjava3.internal.operators.flowable.FlowableConcatWithSingle.ConcatWithSubscriber<T>
All Implemented Interfaces:
FlowableSubscriber<T>, SingleObserver<T>, Serializable, org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
Enclosing class:
FlowableConcatWithSingle<T>

static final class FlowableConcatWithSingle.ConcatWithSubscriber<T> extends SinglePostCompleteSubscriber<T,T> implements SingleObserver<T>
  • Field Details

  • Constructor Details

    • ConcatWithSubscriber

      ConcatWithSubscriber(org.reactivestreams.Subscriber<? super T> actual, SingleSource<? extends T> other)
  • Method Details

    • onSubscribe

      public void onSubscribe(Disposable d)
      Description copied from interface: SingleObserver
      Provides the SingleObserver with the means of cancelling (disposing) the connection (channel) with the Single in both synchronous (from within onSubscribe(Disposable) itself) and asynchronous manner.
      Specified by:
      onSubscribe in interface SingleObserver<T>
      Parameters:
      d - the Disposable instance whose Disposable.dispose() can be called anytime to cancel the connection
    • onNext

      public void onNext(T t)
      Specified by:
      onNext in interface org.reactivestreams.Subscriber<T>
    • onError

      public void onError(Throwable t)
      Description copied from interface: SingleObserver
      Notifies the SingleObserver that the Single has experienced an error condition.

      If the Single calls this method, it will not thereafter call SingleObserver.onSuccess(T).

      Specified by:
      onError in interface SingleObserver<T>
      Specified by:
      onError in interface org.reactivestreams.Subscriber<T>
      Parameters:
      t - the exception encountered by the Single
    • onSuccess

      public void onSuccess(T t)
      Description copied from interface: SingleObserver
      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 SingleObserver.onError(java.lang.Throwable).

      Specified by:
      onSuccess in interface SingleObserver<T>
      Parameters:
      t - the item emitted by the Single
    • onComplete

      public void onComplete()
      Specified by:
      onComplete in interface org.reactivestreams.Subscriber<T>
    • cancel

      public void cancel()
      Specified by:
      cancel in interface org.reactivestreams.Subscription
      Overrides:
      cancel in class SinglePostCompleteSubscriber<T,T>