Class OperatorWithLatestFromMany.WithLatestMainSubscriber<T,​R>

    • Field Detail

      • combiner

        final FuncN<R> combiner
      • current

        final java.util.concurrent.atomic.AtomicReferenceArray<java.lang.Object> current
      • EMPTY

        static final java.lang.Object EMPTY
      • ready

        final java.util.concurrent.atomic.AtomicInteger ready
      • done

        boolean done
    • Constructor Detail

      • WithLatestMainSubscriber

        public WithLatestMainSubscriber​(Subscriber<? super R> actual,
                                        FuncN<R> combiner,
                                        int n)
    • 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
      • 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
      • innerNext

        void innerNext​(int index,
                       java.lang.Object o)
      • innerError

        void innerError​(int index,
                        java.lang.Throwable e)
      • innerComplete

        void innerComplete​(int index)