Class FlowBase<T>

java.lang.Object
org.aksw.commons.rx.util.FlowBase<T>
Type Parameters:
T -
All Implemented Interfaces:
io.reactivex.rxjava3.core.FlowableSubscriber<T>, org.reactivestreams.Subscriber<T>

public abstract class FlowBase<T> extends Object implements io.reactivex.rxjava3.core.FlowableSubscriber<T>
Utility base class for FlowableSubscribers which wraps a FlowableEmitter. There may be a similar base class in the RxJava framework itself, however so far I did not find it ~ Claus
Author:
raven
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected io.reactivex.rxjava3.core.FlowableEmitter<T>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlowBase(io.reactivex.rxjava3.core.FlowableEmitter<T> emitter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
    onSubscribe(@NonNull org.reactivestreams.Subscription s)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.reactivestreams.Subscriber

    onNext
  • Field Details

    • emitter

      protected io.reactivex.rxjava3.core.FlowableEmitter<T> emitter
  • Constructor Details

    • FlowBase

      public FlowBase(io.reactivex.rxjava3.core.FlowableEmitter<T> emitter)
  • Method Details

    • onError

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

      public void onSubscribe(@NonNull @NonNull org.reactivestreams.Subscription s)
      Specified by:
      onSubscribe in interface io.reactivex.rxjava3.core.FlowableSubscriber<T>
      Specified by:
      onSubscribe in interface org.reactivestreams.Subscriber<T>
    • onComplete

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