Class AbstractSubscriber<T>

java.lang.Object
io.github.resilience4j.rxjava3.AbstractSubscriber<T>
All Implemented Interfaces:
io.reactivex.rxjava3.disposables.Disposable, org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription

public abstract class AbstractSubscriber<T> extends Object implements org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription, io.reactivex.rxjava3.disposables.Disposable
  • Field Details

    • downstreamSubscriber

      protected final org.reactivestreams.Subscriber<? super T> downstreamSubscriber
    • eventWasEmitted

      protected final AtomicBoolean eventWasEmitted
  • Constructor Details

    • AbstractSubscriber

      protected AbstractSubscriber(org.reactivestreams.Subscriber<? super T> downstreamSubscriber)
  • Method Details

    • onSubscribe

      public void onSubscribe(org.reactivestreams.Subscription s)
      Specified by:
      onSubscribe in interface org.reactivestreams.Subscriber<T>
    • onNext

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

      protected void hookOnNext(T value)
    • onError

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

      protected abstract void hookOnError(Throwable t)
    • onComplete

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

      protected abstract void hookOnComplete()
    • request

      public void request(long n)
      Specified by:
      request in interface org.reactivestreams.Subscription
    • cancel

      public void cancel()
      Specified by:
      cancel in interface org.reactivestreams.Subscription
    • hookOnCancel

      protected abstract void hookOnCancel()
    • dispose

      public void dispose()
      Specified by:
      dispose in interface io.reactivex.rxjava3.disposables.Disposable
    • isDisposed

      public boolean isDisposed()
      Specified by:
      isDisposed in interface io.reactivex.rxjava3.disposables.Disposable
    • toString

      public String toString()
      Overrides:
      toString in class Object