Class FlowableObserveOn.ObserveOnSubscriber<T>

    • Field Detail

      • downstream

        final org.reactivestreams.Subscriber<? super T> downstream
    • Constructor Detail

      • ObserveOnSubscriber

        ObserveOnSubscriber​(org.reactivestreams.Subscriber<? super T> actual,
                            Scheduler.Worker worker,
                            boolean delayError,
                            int prefetch)
    • Method Detail

      • 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.
      • poll

        @Nullable
        public T poll()
               throws java.lang.Throwable
        Description copied from interface: SimpleQueue
        Tries to dequeue a value (non-null) or returns null if the queue is empty.

        If the producer uses SimpleQueue.offer(Object, Object) and when polling in pairs, if the first poll() returns a non-null item, the second poll() is guaranteed to return a non-null item as well.

        Returns:
        the item or null to indicate an empty queue
        Throws:
        java.lang.Throwable - if some pre-processing of the dequeued item (usually through fused functions) throws.