Class OperatorMapNotification.MapNotificationSubscriber<T,​R>

    • Field Detail

      • onNext

        final Func1<? super T,​? extends R> onNext
      • onError

        final Func1<? super java.lang.Throwable,​? extends R> onError
      • onCompleted

        final Func0<? extends R> onCompleted
      • requested

        final java.util.concurrent.atomic.AtomicLong requested
      • missedRequested

        final java.util.concurrent.atomic.AtomicLong missedRequested
      • producer

        final java.util.concurrent.atomic.AtomicReference<Producer> producer
      • produced

        long produced
      • value

        R value
    • Constructor Detail

      • MapNotificationSubscriber

        public MapNotificationSubscriber​(Subscriber<? super R> actual,
                                         Func1<? super T,​? extends R> onNext,
                                         Func1<? super java.lang.Throwable,​? extends R> onError,
                                         Func0<? extends R> onCompleted)
    • Method Detail

      • onError

        public void onError​(java.lang.Throwable e)
        Description copied from interface: Observer
        Notifies the Observer that the Observable has experienced an error condition.

        If the Observable calls this method, it will not thereafter call Observer.onNext(T) or Observer.onCompleted().

        Parameters:
        e - the exception encountered by the Observable
      • accountProduced

        void accountProduced()
      • setProducer

        public void setProducer​(Producer p)
        Description copied from class: Subscriber
        If other subscriber is set (by calling constructor Subscriber(Subscriber) or Subscriber(Subscriber, boolean)) then this method calls setProducer on the other subscriber. If the other subscriber is not set and no requests have been made to this subscriber then p.request(Long.MAX_VALUE) is called. If the other subscriber is not set and some requests have been made to this subscriber then p.request(n) is called where n is the accumulated requests to this subscriber.
        Overrides:
        setProducer in class Subscriber<T>
        Parameters:
        p - producer to be used by this subscriber or the other subscriber (or recursively its other subscriber) to make requests from
      • tryEmit

        void tryEmit()
      • requestInner

        void requestInner​(long n)