Class FlowableCountSingle.CountSubscriber

java.lang.Object
io.reactivex.rxjava3.internal.operators.flowable.FlowableCountSingle.CountSubscriber
All Implemented Interfaces:
FlowableSubscriber<Object>, Disposable, org.reactivestreams.Subscriber<Object>
Enclosing class:
FlowableCountSingle<T>

static final class FlowableCountSingle.CountSubscriber extends Object implements FlowableSubscriber<Object>, Disposable
  • Field Details

    • downstream

      final SingleObserver<? super Long> downstream
    • upstream

      org.reactivestreams.Subscription upstream
    • count

      long count
  • Constructor Details

  • Method Details

    • onSubscribe

      public void onSubscribe(org.reactivestreams.Subscription s)
      Description copied from interface: FlowableSubscriber
      Implementors of this method should make sure everything that needs to be visible in Subscriber.onNext(Object) is established before calling Subscription.request(long). In practice this means no initialization should happen after the request() call and additional behavior is thread safe in respect to onNext.
      Specified by:
      onSubscribe in interface FlowableSubscriber<Object>
      Specified by:
      onSubscribe in interface org.reactivestreams.Subscriber<Object>
    • onNext

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

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

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

      public void dispose()
      Description copied from interface: Disposable
      Dispose the resource, the operation should be idempotent.
      Specified by:
      dispose in interface Disposable
    • isDisposed

      public boolean isDisposed()
      Description copied from interface: Disposable
      Returns true if this resource has been disposed.
      Specified by:
      isDisposed in interface Disposable
      Returns:
      true if this resource has been disposed